Subversion Repositories SmartDukaan

Rev

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

Rev 10126 Rev 11173
Line 105... Line 105...
105
    t_amazon_inventory_snapshot.reserved = AmazonInventorySnapshot.reserved
105
    t_amazon_inventory_snapshot.reserved = AmazonInventorySnapshot.reserved
106
    return t_amazon_inventory_snapshot
106
    return t_amazon_inventory_snapshot
107
 
107
 
108
def to_t_amazon_fba_inventory_snapshot(AmazonFbaInventorySnapshot):
108
def to_t_amazon_fba_inventory_snapshot(AmazonFbaInventorySnapshot):
109
    t_amazon_inventory_snapshot = TAmazonFbaInventorySnapshot()
109
    t_amazon_inventory_snapshot = TAmazonFbaInventorySnapshot()
-
 
110
    if AmazonFbaInventorySnapshot is None:
-
 
111
        return t_amazon_inventory_snapshot 
110
    t_amazon_inventory_snapshot.item_id = AmazonFbaInventorySnapshot.item_id
112
    t_amazon_inventory_snapshot.item_id = AmazonFbaInventorySnapshot.item_id
111
    t_amazon_inventory_snapshot.availability = AmazonFbaInventorySnapshot.availability
113
    t_amazon_inventory_snapshot.availability = AmazonFbaInventorySnapshot.availability
-
 
114
    t_amazon_inventory_snapshot.location = AmazonFbaInventorySnapshot.location
-
 
115
    t_amazon_inventory_snapshot.reserved = AmazonFbaInventorySnapshot.reserved
-
 
116
    t_amazon_inventory_snapshot.inbound = AmazonFbaInventorySnapshot.inbound
-
 
117
    t_amazon_inventory_snapshot.unfulfillable = AmazonFbaInventorySnapshot.unfulfillable
112
    return t_amazon_inventory_snapshot
118
    return t_amazon_inventory_snapshot
113
 
119
 
114
def to_t_snapdeal_inventory_snapshot(snapdealInventoryItem):
120
def to_t_snapdeal_inventory_snapshot(snapdealInventoryItem):
115
    t_snapdeal_inventory_snapshot = TSnapdealInventoryItem()
121
    t_snapdeal_inventory_snapshot = TSnapdealInventoryItem()
116
    if snapdealInventoryItem is None:
122
    if snapdealInventoryItem is None: