posting-date-fix (#12849)

This commit is contained in:
Shreya Shah 2018-02-12 11:34:46 +05:30 committed by Rushabh Mehta
parent 45ac31ab93
commit caccd2289d

View File

@ -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