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:
parent
8ba9f7f510
commit
29c1621882
@ -192,9 +192,9 @@ module.exports = class BaseDocument extends Observable {
|
||||
return childDoc;
|
||||
}
|
||||
|
||||
validateInsert() {
|
||||
async validateInsert() {
|
||||
this.validateMandatory();
|
||||
this.validateFields();
|
||||
await this.validateFields();
|
||||
}
|
||||
|
||||
validateMandatory() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user