Merge pull request #31676 from ruthra-kumar/fix_tax_withholding_checkbox_on_PI

fix: enable tax withholding checkbox in PI with supplier_tds
This commit is contained in:
Deepesh Garg 2022-07-25 12:56:29 +05:30 committed by GitHub
commit 98b42ce786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,7 @@ class PurchaseInvoice(BuyingController):
if tds_category and not for_validate: if tds_category and not for_validate:
self.apply_tds = 1 self.apply_tds = 1
self.tax_withholding_category = tds_category self.tax_withholding_category = tds_category
self.set_onload("supplier_tds", tds_category)
super(PurchaseInvoice, self).set_missing_values(for_validate) super(PurchaseInvoice, self).set_missing_values(for_validate)