posting date in journal entry should not be nowdate (#12801)

This commit is contained in:
Shreya Shah 2018-02-07 12:08:08 +05:30 committed by Nabin Hait
parent b4693c6957
commit 80423de611

View File

@ -321,7 +321,7 @@ class PayrollEntry(Document):
journal_entry.user_remark = _('Payment of salary 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
payment_amount = flt(total_salary_amount.rounded_total, precision)