Subversion Repositories SmartDukaan

Rev

Rev 18309 | Rev 20046 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18309 Rev 18468
Line 39... Line 39...
39
 
39
 
40
orderIds = []
40
orderIds = []
41
 
41
 
42
curDate = date.today()
42
curDate = date.today()
43
cutOffMonth = (datetime.now().month + 10)%12
43
cutOffMonth = (datetime.now().month + 10)%12
-
 
44
cutOffMonth = 12 if cutOffMonth==0 else cutOffMonth 
44
cutOffYear = curDate.year - (0 if curDate.month-2 > 0 else 1)
45
cutOffYear = curDate.year - (0 if curDate.month-2 > 0 else 1)
45
cutOff = to_java_date(datetime(cutOffYear, cutOffMonth, 1))/1000
46
cutOff = to_java_date(datetime(cutOffYear, cutOffMonth, 1))/1000
46
cutOffDate=datetime(cutOffYear, cutOffMonth, 1)
47
cutOffDate=datetime(cutOffYear, cutOffMonth, 1)
47
#cutOff = 1425234600
48
#cutOff = 1425234600
48
oneDay = 86400
49
oneDay = 86400