Merge pull request #6453 from PawanMeh/hotfix

[fix]-Ageing buckets should not have amounts if due date is not reached
This commit is contained in:
Pawan Mehta 2016-09-23 22:52:00 +05:30 committed by GitHub
commit 4f72480045

View File

@ -124,6 +124,10 @@ class ReceivablePayableReport(object):
row += get_ageing_data(cint(self.filters.range1), cint(self.filters.range2),
cint(self.filters.range3), self.age_as_on, entry_date, outstanding_amount)
# issue 6371-Ageing buckets should not have amounts if due date is not reached
if self.filters.ageing_based_on == "Due Date" and getdate(due_date) > getdate(self.filters.report_date):
row[-1]=row[-2]=row[-3]=row[-4]=0
if self.filters.get(scrub(args.get("party_type"))):
row.append(gle.account_currency)
else: