mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-28 17:34:47 +00:00
fixes in budget control
This commit is contained in:
@@ -83,7 +83,7 @@ class DocType:
|
|||||||
|
|
||||||
# validate monthly budget
|
# validate monthly budget
|
||||||
self.validate_budget(gle['account'], gle['cost_center'], \
|
self.validate_budget(gle['account'], gle['cost_center'], \
|
||||||
flt(actual) + flt(curr_amt), budget, 'monthly_bgt_flag')
|
flt(actual) + flt(curr_amt), budget, bgt_flag[0]['monthly_bgt_flag'])
|
||||||
|
|
||||||
# update actual against budget allocated in cost center
|
# update actual against budget allocated in cost center
|
||||||
webnotes.conn.sql("""update `tabBudget Detail` set actual = ifnull(actual,0) + %s
|
webnotes.conn.sql("""update `tabBudget Detail` set actual = ifnull(actual,0) + %s
|
||||||
|
|||||||
Reference in New Issue
Block a user