[Enhance] Added Budget exception approver role in company (#14645)

* [Enhance] Added Budget exception approver role in company

* Added test cases for budget
This commit is contained in:
rohitwaghchaure
2018-06-25 10:31:08 +05:30
committed by Nabin Hait
parent b4ad3c3f77
commit 34c187706d
4 changed files with 265 additions and 18 deletions

View File

@@ -518,7 +518,9 @@ class BuyingController(StockController):
args = data.as_dict()
args.update({
'doctype': self.doctype,
'company': self.company
'company': self.company,
'posting_date': (self.schedule_date
if self.doctype == 'Material Request' else self.transaction_date)
})
validate_expense_against_budget(args)