mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
Merge pull request #2 from piyushsinghania/fix/automatic-updation-of-tax-rate-on-changing-item
Applying change to child first and then to parent in a child document
This commit is contained in:
commit
be52dc5104
@ -86,6 +86,7 @@ module.exports = class BaseDocument extends Observable {
|
||||
|
||||
// always run applyChange from the parentdoc
|
||||
if (this.meta.isChild && this.parentdoc) {
|
||||
await this.applyChange(fieldname);
|
||||
await this.parentdoc.applyChange(this.parentfield);
|
||||
} else {
|
||||
await this.applyChange(fieldname);
|
||||
|
Loading…
Reference in New Issue
Block a user