mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 19:55:29 +00:00
fix: do not auto apply tds in purchase order
(cherry picked from commit 0b942a0614)
This commit is contained in:
@@ -651,8 +651,6 @@ class PurchaseOrder(BuyingController):
|
|||||||
def set_missing_values(self, for_validate=False):
|
def set_missing_values(self, for_validate=False):
|
||||||
tds_category = frappe.db.get_value("Supplier", self.supplier, "tax_withholding_category")
|
tds_category = frappe.db.get_value("Supplier", self.supplier, "tax_withholding_category")
|
||||||
if tds_category and not for_validate:
|
if tds_category and not for_validate:
|
||||||
self.apply_tds = 1
|
|
||||||
self.tax_withholding_category = tds_category
|
|
||||||
self.set_onload("supplier_tds", tds_category)
|
self.set_onload("supplier_tds", tds_category)
|
||||||
|
|
||||||
super().set_missing_values(for_validate)
|
super().set_missing_values(for_validate)
|
||||||
|
|||||||
Reference in New Issue
Block a user