commit | 2437d4cce2c03e62865271da6bd298b9b9b46ee5 | [log] [tgz] |
---|---|---|
author | Pratik Vyas <m@pd.io> | Fri Apr 10 12:35:43 2015 +0530 |
committer | Pratik Vyas <m@pd.io> | Fri Apr 10 12:35:43 2015 +0530 |
tree | 4fbaded6414ba25aff2b9fcd6947e49bcd6f8947 | |
parent | 950bf72471ab882019e9ebd7ecc19e60f30fcd36 [diff] |
Fix #3046 Customer Acquisition and Loyalty repor
diff --git a/erpnext/selling/report/customer_acquisition_and_loyalty/customer_acquisition_and_loyalty.py b/erpnext/selling/report/customer_acquisition_and_loyalty/customer_acquisition_and_loyalty.py index 2b88a50..bf274cd 100644 --- a/erpnext/selling/report/customer_acquisition_and_loyalty/customer_acquisition_and_loyalty.py +++ b/erpnext/selling/report/customer_acquisition_and_loyalty/customer_acquisition_and_loyalty.py
@@ -22,7 +22,7 @@ {company_condition} order by posting_date""".format(company_condition=company_condition), filters, as_dict=1): - key = si.posting_date.strftime("%Y-%m-%d") + key = si.posting_date.strftime("%Y-%m") if not si.customer in customers: new_customers_in.setdefault(key, [0, 0.0]) new_customers_in[key][0] += 1