Subversion Repositories SmartDukaan

Rev

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

Rev 122 Rev 386
Line 19... Line 19...
19
    if item.startDate:
19
    if item.startDate:
20
        t_item.startDate = to_java_date(item.startDate)
20
        t_item.startDate = to_java_date(item.startDate)
21
    if item.addedOn:
21
    if item.addedOn:
22
        t_item.addedOn = to_java_date(item.addedOn)
22
        t_item.addedOn = to_java_date(item.addedOn)
23
    t_item.itemStatus = item.status
23
    t_item.itemStatus = item.status
-
 
24
    if item.prices:
-
 
25
        t_item.price = {}
-
 
26
        for price in item.prices:
-
 
27
            t_item.price[price.warehouse_id] = price.price
24
    t_item.itemInventory = to_t_item_inventory(item.currentInventory, item.id)
28
    t_item.itemInventory = to_t_item_inventory(item.currentInventory, item.id)
25
    
29
    
26
    t_item.otherInfo = to_t_other_info(item)
30
    t_item.otherInfo = to_t_other_info(item)
27
    return t_item
31
    return t_item
28
 
32