mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-17 02:26:33 +00:00
refactor: move validate trigger to controller
This commit is contained in:
@@ -775,6 +775,12 @@ class BuyingController(SubcontractingController):
|
||||
self.update_fixed_asset(field, delete_asset=True)
|
||||
|
||||
def validate_budget(self):
|
||||
from erpnext.controllers.budget_controller import BudgetValidation
|
||||
|
||||
val = BudgetValidation(self)
|
||||
val.validate()
|
||||
return
|
||||
|
||||
if self.docstatus == 1:
|
||||
for data in self.get("items"):
|
||||
args = data.as_dict()
|
||||
|
||||
Reference in New Issue
Block a user