mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
Merge branch 'master' into edge
This commit is contained in:
@@ -33,6 +33,7 @@ def execute(filters=None):
|
|||||||
for leave_type in leave_types:
|
for leave_type in leave_types:
|
||||||
columns.append(leave_type + " Allocated:Float")
|
columns.append(leave_type + " Allocated:Float")
|
||||||
columns.append(leave_type + " Taken:Float")
|
columns.append(leave_type + " Taken:Float")
|
||||||
|
columns.append(leave_type + " Balance:Float")
|
||||||
|
|
||||||
data = {}
|
data = {}
|
||||||
for d in allocations:
|
for d in allocations:
|
||||||
@@ -52,5 +53,6 @@ def execute(filters=None):
|
|||||||
tmp = data.get((fiscal_year, employee.name, leave_type), webnotes._dict())
|
tmp = data.get((fiscal_year, employee.name, leave_type), webnotes._dict())
|
||||||
row.append(tmp.allocation or 0)
|
row.append(tmp.allocation or 0)
|
||||||
row.append(tmp.leaves or 0)
|
row.append(tmp.leaves or 0)
|
||||||
|
row.append((tmp.allocation or 0) - (tmp.leaves or 0))
|
||||||
|
|
||||||
return columns, result
|
return columns, result
|
||||||
Reference in New Issue
Block a user