Subversion Repositories SmartDukaan

Rev

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

Rev 515 Rev 563
Line 51... Line 51...
51
    try:
51
    try:
52
        return query.one()
52
        return query.one()
53
    except:
53
    except:
54
        raise InventoryServiceException(109, "Item not found")
54
        raise InventoryServiceException(109, "Item not found")
55
        
55
        
-
 
56
def is_active(item_id):   
-
 
57
    item = get_Item(item_id)
-
 
58
    return item.status == status.ACTIVE
-
 
59
        
56
def get_Warehouse(warehouse_id):
60
def get_Warehouse(warehouse_id):
57
    return Warehouse.get_by(id=warehouse_id)
61
    return Warehouse.get_by(id=warehouse_id)
58
 
62
 
59
def get_all_warehouses_by_status(status):
63
def get_all_warehouses_by_status(status):
60
    if not status:
64
    if not status: