Subversion Repositories SmartDukaan

Rev

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

Rev 494 Rev 501
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.sellingPrice:
-
 
25
        t_item.sellingPrice = item.sellingPrice    
24
    if item.prices:
26
    if item.sellingPrice:
25
        t_item.price = {}
27
        t_item.mrp = item.mrp    
26
        for price in item.prices:
28
    if item.sellingPrice:
27
            t_item.price[price.warehouse_id] = price.price
29
        t_item.mop = item.mop
28
    t_item.itemInventory = to_t_item_inventory(item.currentInventory, item.id)
30
    t_item.itemInventory = to_t_item_inventory(item.currentInventory, item.id)
29
    
31
    
30
    t_item.otherInfo = to_t_other_info(item)
32
    t_item.otherInfo = to_t_other_info(item)
31
    return t_item
33
    return t_item
32
 
34