From d9bf6424470b542439c7eef443ef9694cf3f89a6 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Fri, 7 Jun 2013 15:28:43 +0530 Subject: [PATCH] [Report][Changes made in Customers Not Buying Since Long Time.py] --- .../customers_not_buying_since_long_time.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selling/report/customers_not_buying_since_long_time/customers_not_buying_since_long_time.py b/selling/report/customers_not_buying_since_long_time/customers_not_buying_since_long_time.py index d13315c151..08809a7619 100644 --- a/selling/report/customers_not_buying_since_long_time/customers_not_buying_since_long_time.py +++ b/selling/report/customers_not_buying_since_long_time/customers_not_buying_since_long_time.py @@ -22,8 +22,8 @@ def execute(filters=None): if not filters: filters ={} days_since_last_order = filters.get("days_since_last_order") - if not days_since_last_order or days_since_last_order <= 0: - webnotes.msgprint("Please mention legal value in days since last order field",raise_exception=1) + if cint(days_since_last_order) <= 0: + webnotes.msgprint("Please mention positive value in 'Days Since Last Order' field",raise_exception=1) columns = get_columns() customers = get_so_details()