Subversion Repositories SmartDukaan

Rev

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

Rev 1911 Rev 1976
Line 51... Line 51...
51
        order.customer_email = t_order.customer_email
51
        order.customer_email = t_order.customer_email
52
    #new status and status description to be added    
52
    #new status and status description to be added    
53
    order.status = t_order.status  
53
    order.status = t_order.status  
54
    order.statusDescription = t_order.statusDescription
54
    order.statusDescription = t_order.statusDescription
55
    order.total_amount = t_order.total_amount
55
    order.total_amount = t_order.total_amount
-
 
56
    order.discounted_amount = t_order.discounted_amount
56
    order.total_weight = t_order.total_weight
57
    order.total_weight = t_order.total_weight
57
    if t_order.created_timestamp:
58
    if t_order.created_timestamp:
58
        order.created_timestamp = to_py_date(t_order.created_timestamp)
59
        order.created_timestamp = to_py_date(t_order.created_timestamp)
59
    else:
60
    else:
60
        order.created_timestamp = datetime.datetime.now()
61
        order.created_timestamp = datetime.datetime.now()
Line 88... Line 89...
88
            litem.unit_price = line_item.unit_price
89
            litem.unit_price = line_item.unit_price
89
            litem.unit_weight = line_item.unit_weight
90
            litem.unit_weight = line_item.unit_weight
90
            litem.total_price = line_item.total_price
91
            litem.total_price = line_item.total_price
91
            litem.total_weight = line_item.total_weight
92
            litem.total_weight = line_item.total_weight
92
            litem.transfer_price = line_item.transfer_price
93
            litem.transfer_price = line_item.transfer_price
-
 
94
            litem.discounted_price = line_item.discounted_price
-
 
95
            
93
            """
96
            """
94
            if line_item.addedOn:
97
            if line_item.addedOn:
95
                litem.added_on = to_py_date(line_item.addedOn)
98
                litem.added_on = to_py_date(line_item.addedOn)
96
            else:
99
            else:
97
                litem.added_on = datetime.datetime.now()
100
                litem.added_on = datetime.datetime.now()