Subversion Repositories SmartDukaan

Rev

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

Rev 8617 Rev 8621
Line 1199... Line 1199...
1199
    session.commit()
1199
    session.commit()
1200
 
1200
 
1201
 
1201
 
1202
def get_amazon_fba_inventory(itemId):
1202
def get_amazon_fba_inventory(itemId):
1203
    row = AmazonFbaInventorySnapshot.get_by(item_id=itemId)
1203
    row = AmazonFbaInventorySnapshot.get_by(item_id=itemId)
-
 
1204
    if row is None:
-
 
1205
        return 0
-
 
1206
    else:
1204
    return row.availability
1207
        return row.availability
1205
 
1208
 
1206
def get_all_amazon_fba_inventory():
1209
def get_all_amazon_fba_inventory():
1207
    return AmazonFbaInventorySnapshot.query.all() 
1210
    return AmazonFbaInventorySnapshot.query.all() 
1208
 
1211
 
1209
def get_oursgood_warehouseids_for_location(state_id):
1212
def get_oursgood_warehouseids_for_location(state_id):