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
commit 5167fb2bae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}