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

Merge pull request #154 from piyushsinghania/master

Added dependency for the cancel feature
This commit is contained in:
Alan 2021-11-16 11:26:03 +05:30 committed by GitHub
commit da58ae45fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -634,6 +634,7 @@ module.exports = class BaseDocument extends Observable {
}
async submit() {
this.cancelled = 0;
await this.submitOrRevert(1);
}