2
0
mirror of https://github.com/frappe/books.git synced 2025-01-22 22:58:28 +00:00

fix: validation not running issue

This commit is contained in:
18alantom 2022-02-07 14:16:02 +05:30
parent 8ba9f7f510
commit 29c1621882

View File

@ -192,9 +192,9 @@ module.exports = class BaseDocument extends Observable {
return childDoc;
}
validateInsert() {
async validateInsert() {
this.validateMandatory();
this.validateFields();
await this.validateFields();
}
validateMandatory() {