fix: check if terms is not set in selling controller

This commit is contained in:
Mihir Kandoi
2025-12-10 21:58:16 +05:30
committed by GitHub
parent 3787b9fbe5
commit 074bdd119b

View File

@@ -51,6 +51,7 @@ class SellingController(StockController):
) )
) )
and not self.get("tc_name") and not self.get("tc_name")
and not self.get("terms")
): ):
self.tc_name = default_selling_terms self.tc_name = default_selling_terms
self.terms = frappe.get_value("Terms and Conditions", self.get("tc_name"), "terms") self.terms = frappe.get_value("Terms and Conditions", self.get("tc_name"), "terms")