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

Reseting flags in compareWithCurrentDoc on subsequent calls

This commit is contained in:
Piyush Singhania 2021-10-14 23:21:26 +05:30
parent 9b9edd700c
commit 4218527df8

View File

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