Added expense account, cost center in the purchase order and material request item doctype and fix the code (#14535)
This commit is contained in:
committed by
Nabin Hait
parent
27eff99190
commit
77a45b43aa
@@ -515,13 +515,13 @@ class BuyingController(StockController):
|
||||
def validate_budget(self):
|
||||
if self.docstatus == 1:
|
||||
for data in self.get('items'):
|
||||
validate_expense_against_budget({
|
||||
'item_code': data.item_code,
|
||||
'item_group': data.item_group,
|
||||
'posting_date': data.schedule_date,
|
||||
'project': data.project,
|
||||
'doctype': self.doctype
|
||||
}, self.company)
|
||||
args = data.as_dict()
|
||||
args.update({
|
||||
'doctype': self.doctype,
|
||||
'company': self.company
|
||||
})
|
||||
|
||||
validate_expense_against_budget(args)
|
||||
|
||||
def process_fixed_asset(self):
|
||||
if self.doctype == 'Purchase Invoice' and not self.update_stock:
|
||||
|
||||
Reference in New Issue
Block a user