2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

Merge pull request #1 from piyushsinghania/fix/reset-flags-on-compareWithCurrentDoc-on-subsequent-calls

Reseting flags in compareWithCurrentDoc on subsequent calls
This commit is contained in:
Ankit Singhaniya 2021-10-16 01:57:46 +05:30 committed by GitHub
commit 2a1ec09de9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -412,6 +412,7 @@ module.exports = class BaseDocument extends Observable {
}
// set submit action flag
this.flags = {}
if (this.submitted && !currentDoc.submitted) {
this.flags.submitAction = true;
}