fix: Apply TDS on Purchase Invoice creation from Purchase Order and Purchase Receipt

This commit is contained in:
Deepesh Garg 2020-09-07 17:55:10 +05:30
parent 5952efd66c
commit 74ab1084b3

View File

@ -25,6 +25,12 @@ erpnext.accounts.PurchaseInvoice = erpnext.buying.BuyingController.extend({
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) {