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
fix: cancelled vouchers in tax withheld vouchers list (#35309)

(cherry picked from commit 776a830)

Co-authored-by: ruthra kumar <ruthra@erpnext.com>
  • Loading branch information
mergify[bot] and ruthra-kumar authored May 16, 2023
1 parent 8f8c0a5 commit c41e1d7
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 = class PurchaseInvoice extends erpnext.buying.

apply_tds(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 c41e1d7

Please sign in to comment.