Skip to content

Commit

Permalink
fix: TDS check getting checked after reload (#24972)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 authored Mar 23, 2021
1 parent 5e1cb5e commit ad9b65f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,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 ad9b65f

Please sign in to comment.