From caccd2289d57254ed7fdce0197ad9b7e7ae68e6e Mon Sep 17 00:00:00 2001 From: Shreya Shah Date: Mon, 12 Feb 2018 11:34:46 +0530 Subject: [PATCH] posting-date-fix (#12849) --- erpnext/hr/doctype/payroll_entry/payroll_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/hr/doctype/payroll_entry/payroll_entry.py b/erpnext/hr/doctype/payroll_entry/payroll_entry.py index 77cece3cfe..2a5b467845 100644 --- a/erpnext/hr/doctype/payroll_entry/payroll_entry.py +++ b/erpnext/hr/doctype/payroll_entry/payroll_entry.py @@ -252,7 +252,7 @@ class PayrollEntry(Document): journal_entry.user_remark = _('Accural Journal Entry for salaries from {0} to {1}')\ .format(self.start_date, self.end_date) journal_entry.company = self.company - journal_entry.posting_date = nowdate() + journal_entry.posting_date = self.posting_date accounts = [] payable_amount = 0