feat: consider carry forwarded leaves on creation of encashment
diff --git a/erpnext/hr/utils.py b/erpnext/hr/utils.py
index bf09de8..4fe9f6b 100644
--- a/erpnext/hr/utils.py
+++ b/erpnext/hr/utils.py
@@ -318,7 +318,7 @@
''' Create leave ledger entry based on the earned leave frequency '''
allocation.new_leaves_allocated = earned_leaves
allocation.from_date = date
- allocation.carry_forwarded_leaves = 0
+ allocation.unused_leaves = 0
allocation.create_leave_ledger_entry()
def check_frequency_hit(from_date, to_date, frequency):