fix: TDS check getting checked after reload (#24972)
This commit is contained in:
parent
5e1cb5e4bc
commit
ad9b65fcf2
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user