Merge pull request #37475 from iamrishiksahu/fix/#37231-doc-is-not-defined

fix: fixed the doc not defined issue.
This commit is contained in:
Ankush Menat
2023-10-13 15:30:39 +05:30
committed by GitHub

View File

@@ -116,7 +116,7 @@ erpnext.accounts.taxes = {
account_head: function(frm, cdt, cdn) {
let d = locals[cdt][cdn];
if (doc.docstatus == 1) {
if (d.docstatus == 1) {
// Should not trigger any changes on change post submit
return;
}