Subversion Repositories SmartDukaan

Rev

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

Rev 2676 Rev 2783
Line 82... Line 82...
82
    t_lineitem.unit_price = lineitem.unit_price
82
    t_lineitem.unit_price = lineitem.unit_price
83
    t_lineitem.total_price = lineitem.total_price
83
    t_lineitem.total_price = lineitem.total_price
84
    t_lineitem.transfer_price = lineitem.transfer_price
84
    t_lineitem.transfer_price = lineitem.transfer_price
85
    t_lineitem.total_weight = lineitem.total_weight 
85
    t_lineitem.total_weight = lineitem.total_weight 
86
    t_lineitem.quantity = lineitem.quantity
86
    t_lineitem.quantity = lineitem.quantity
-
 
87
    t_lineitem.item_number = lineitem.item_number
-
 
88
    if lineitem.imei_number is not None:
-
 
89
        t_lineitem.imei_number = int(lineitem.imei_number)
87
    return t_lineitem
90
    return t_lineitem
88
 
91
 
89
def to_t_alert(alert):
92
def to_t_alert(alert):
90
    t_alert = T_Alert()
93
    t_alert = T_Alert()
91
    t_alert.id = alert.id
94
    t_alert.id = alert.id
Line 98... Line 101...
98
        t_alert.time_unset = to_java_date(alert.time_unset)
101
        t_alert.time_unset = to_java_date(alert.time_unset)
99
    except:
102
    except:
100
        pass
103
        pass
101
    t_alert.order_id = alert.order_id
104
    t_alert.order_id = alert.order_id
102
    t_alert.type = alert.type
105
    t_alert.type = alert.type
103
    return t_alert
-
 
104
106
    return t_alert
-
 
107