Skip to content

Commit

Permalink
Merge pull request #24974 from deepeshgarg007/tds_check_fix_v12
Browse files Browse the repository at this point in the history
fix: TDS check getting checked after reload
  • Loading branch information
deepeshgarg007 authored Mar 26, 2021
2 parents a52ea48 + bb3c44d commit 5653190
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ frappe.ui.form.on("Purchase Invoice", {
},

onload: function(frm) {
if(frm.doc.__onload) {
if(frm.doc.__onload && frm.is_new()) {
if(frm.doc.supplier) {
frm.doc.apply_tds = frm.doc.__onload.supplier_tds ? 1 : 0;
}
Expand Down

0 comments on commit 5653190

Please sign in to comment.