fix: Apply TDS on Purchase Invoice creation from Purchase Order and Purchase Receipt
diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js
index 4f6be59..b5c1cd7 100644
--- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js
+++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js
@@ -25,6 +25,12 @@
this.frm.set_df_property("credit_to", "print_hide", 0);
}
}
+
+ // Trigger supplier event on load if supplier is available
+ // The reason for this is PI can be created from PR or PO and supplier is pre populated
+ if (this.frm.doc.supplier) {
+ this.frm.trigger('supplier');
+ }
},
refresh: function(doc) {