Skip to content

Commit

Permalink
fix: cancelled vouchers in tax withheld vouchers list (#35309)
Browse files Browse the repository at this point in the history
(cherry picked from commit 776a830)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed May 16, 2023
1 parent c7c2bad commit fb45fb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ erpnext.accounts.PurchaseInvoice = erpnext.buying.BuyingController.extend({

apply_tds: function(frm) {
var me = this;

me.frm.set_value("tax_withheld_vouchers", []);
if (!me.frm.doc.apply_tds) {
me.frm.set_value("tax_withholding_category", '');
me.frm.set_df_property("tax_withholding_category", "hidden", 1);
Expand Down

0 comments on commit fb45fb7

Please sign in to comment.