Merge pull request #6015 from nabinhait/ar_ap_cols

[fix] Label for ageing cols in AR/AP report
This commit is contained in:
Nabin Hait 2016-08-08 12:37:19 +05:30 committed by GitHub
commit 2cb8c6a867

View File

@ -52,10 +52,10 @@ class ReceivablePayableReport(object):
if not "range3" in self.filters: if not "range3" in self.filters:
self.filters["range3"] = "90" self.filters["range3"] = "90"
for label in ("0-{range1}".format(**self.filters), for label in ("0-{range1}".format(range1=self.filters["range1"]),
"{range1}-{range2}".format(**self.filters), "{range1}-{range2}".format(range1=self.filters["range1"]+1, range2=self.filters["range2"]),
"{range2}-{range3}".format(**self.filters), "{range2}-{range3}".format(range2=self.filters["range2"]+1, range3=self.filters["range3"]),
"{range3}-{above}".format(range3=self.filters.range3, above=_("Above"))): "{range3}-{above}".format(range3=self.filters["range3"] + 1, above=_("Above"))):
columns.append({ columns.append({
"label": label, "label": label,
"fieldtype": "Currency", "fieldtype": "Currency",