Subversion Repositories SmartDukaan

Rev

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

Rev 3355 Rev 3359
Line 33... Line 33...
33
    t_item.itemStatus = item.status
33
    t_item.itemStatus = item.status
34
    t_item.status_description = item.status_description
34
    t_item.status_description = item.status_description
35
    
35
    
36
    if item.sellingPrice:
36
    if item.sellingPrice:
37
        t_item.sellingPrice = item.sellingPrice
37
        t_item.sellingPrice = item.sellingPrice
38
    if item.dealerPrice:
-
 
39
        t_item.dealerPrice = item.dealerPrice    
-
 
40
    if item.mrp:
38
    if item.mrp:
41
        t_item.mrp = item.mrp    
39
        t_item.mrp = item.mrp    
42
    if item.mop:
-
 
43
        t_item.mop = item.mop
-
 
44
    if item.transfer_price:
-
 
45
        t_item.transferPrice = item.transfer_price
-
 
46
    t_item.itemInventory = to_t_item_inventory(item.currentInventory, item.id)
40
    t_item.itemInventory = to_t_item_inventory(item.currentInventory, item.id)
47
    
41
    
48
    if item.comments:
42
    if item.comments:
49
        t_item.comments = item.comments
43
        t_item.comments = item.comments
50
    if item.bestDealText:
44
    if item.bestDealText:
Line 56... Line 50...
56
    t_item.defaultForEntity = item.defaultForEntity
50
    t_item.defaultForEntity = item.defaultForEntity
57
    t_item.otherInfo = to_t_other_info(item)
51
    t_item.otherInfo = to_t_other_info(item)
58
    t_item.bestSellingRank = item.bestSellingRank
52
    t_item.bestSellingRank = item.bestSellingRank
59
    t_item.risky = item.risky
53
    t_item.risky = item.risky
60
    t_item.expectedDelay = item.expectedDelay
54
    t_item.expectedDelay = item.expectedDelay
-
 
55
    t_item.preferredWarehouse = item.preferredWarehouse
61
    
56
    
62
    return t_item
57
    return t_item
63
 
58
 
64
def to_t_other_info(item):
59
def to_t_other_info(item):
65
    t_other_info = {}
60
    t_other_info = {}