[fix] [minor] default ranges for demo

This commit is contained in:
Rushabh Mehta 2015-09-30 16:55:26 +05:30
parent e5047ec90a
commit 83c0899c83

View File

@ -40,6 +40,13 @@ class ReceivablePayableReport(object):
columns += [_("Age (Days)") + "::80"]
if not "range1" in self.filters:
self.filters["range1"] = "30"
if not "range2" in self.filters:
self.filters["range2"] = "60"
if not "range3" in self.filters:
self.filters["range3"] = "90"
for label in ("0-{range1}".format(**self.filters),
"{range1}-{range2}".format(**self.filters),
"{range2}-{range3}".format(**self.filters),