fix: do not auto apply tds in purchase order

(cherry picked from commit 0b942a0614)
This commit is contained in:
ljain112
2024-09-10 13:11:09 +05:30
committed by Mergify
parent 7027be8fbc
commit 741c18b144

View File

@@ -651,8 +651,6 @@ class PurchaseOrder(BuyingController):
def set_missing_values(self, for_validate=False):
tds_category = frappe.db.get_value("Supplier", self.supplier, "tax_withholding_category")
if tds_category and not for_validate:
self.apply_tds = 1
self.tax_withholding_category = tds_category
self.set_onload("supplier_tds", tds_category)
super().set_missing_values(for_validate)