From c6d6adcbf3889a642ff1ed7deb955e5fd0bda04f Mon Sep 17 00:00:00 2001 From: Mangesh-Khairnar Date: Tue, 28 May 2019 09:44:38 +0530 Subject: [PATCH] fix: ledger entry creation for encashment --- erpnext/hr/doctype/leave_encashment/leave_encashment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/hr/doctype/leave_encashment/leave_encashment.py b/erpnext/hr/doctype/leave_encashment/leave_encashment.py index c59ce63c7c..70cd5780c8 100644 --- a/erpnext/hr/doctype/leave_encashment/leave_encashment.py +++ b/erpnext/hr/doctype/leave_encashment/leave_encashment.py @@ -84,7 +84,7 @@ class LeaveEncashment(Document): args = frappe._dict( leaves=self.encashable_days * -1, from_date=self.encashment_date, - to_date=self.encashable_days, + to_date=self.encashment_date, is_carry_forward=0 ) create_leave_ledger_entry(self, args, submit) \ No newline at end of file