Subversion Repositories SmartDukaan

Rev

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

Rev 4636 Rev 4648
Line 49... Line 49...
49
    sheet.write(0, 5, "Color", heading_xf)
49
    sheet.write(0, 5, "Color", heading_xf)
50
    sheet.write(0, 6, "Creation Date", heading_xf)
50
    sheet.write(0, 6, "Creation Date", heading_xf)
51
    sheet.write(0, 7, "Promised Shipping Date", heading_xf)
51
    sheet.write(0, 7, "Promised Shipping Date", heading_xf)
52
    sheet.write(0, 8, "Expected Shipping Date", heading_xf)
52
    sheet.write(0, 8, "Expected Shipping Date", heading_xf)
53
    sheet.write(0, 9, "Delay Reason", heading_xf)
53
    sheet.write(0, 9, "Delay Reason", heading_xf)
54
        
54
    sheet.write(0, 10, "Detailed Reason Text", heading_xf)    
55
 
55
 
56
    order = Order()
56
    order = Order()
57
    mode = {}
57
    mode = {}
58
    mode[0] = 'Prepaid'
58
    mode[0] = 'Prepaid'
59
    mode[1] = 'COD'
59
    mode[1] = 'COD'
Line 72... Line 72...
72
        sheet.write(i, 6, to_py_date(order.created_timestamp), date_style)
72
        sheet.write(i, 6, to_py_date(order.created_timestamp), date_style)
73
        sheet.write(i, 7, to_py_date(order.promised_shipping_time), date_style)
73
        sheet.write(i, 7, to_py_date(order.promised_shipping_time), date_style)
74
        sheet.write(i, 8, to_py_date(order.expected_shipping_time), date_style)
74
        sheet.write(i, 8, to_py_date(order.expected_shipping_time), date_style)
75
        if order.delayReason:
75
        if order.delayReason:
76
            sheet.write(i, 9, DelayReason._VALUES_TO_NAMES[order.delayReason])
76
            sheet.write(i, 9, DelayReason._VALUES_TO_NAMES[order.delayReason])
-
 
77
        sheet.write(i, 10, order.delayReasonText)
77
        
78
        
78
        i= i+1
79
        i= i+1
79
    
80
    
80
    today = datetime.date.today()
81
    today = datetime.date.today()
81
    datestr = str(today.year) + "-" + str(today.month) + "-" + str(today.day)
82
    datestr = str(today.year) + "-" + str(today.month) + "-" + str(today.day)