Subversion Repositories SmartDukaan

Rev

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

Rev 4320 Rev 4326
Line 1150... Line 1150...
1150
def add_source_item_pricing(sourceItemPricing):
1150
def add_source_item_pricing(sourceItemPricing):
1151
    if not sourceItemPricing:
1151
    if not sourceItemPricing:
1152
        raise InventoryServiceException(108, "Bad sourceItemPricing in request")
1152
        raise InventoryServiceException(108, "Bad sourceItemPricing in request")
1153
    
1153
    
1154
    if not sourceItemPricing.sellingPrice:
1154
    if not sourceItemPricing.sellingPrice:
1155
        raise InventoryServiceException(101, "Selling Price is not defined for sourceId " + str(sourceId))
1155
        raise InventoryServiceException(101, "Selling Price is not defined for sourceId " + str(sourceItemPricing.sourceId))
1156
    
1156
    
1157
    sourceId = sourceItemPricing.sourceId
1157
    sourceId = sourceItemPricing.sourceId
1158
    itemId = sourceItemPricing.itemId
1158
    itemId = sourceItemPricing.itemId
1159
    
1159
    
1160
    item = Item.query.filter_by(id=itemId).first()
1160
    item = Item.query.filter_by(id=itemId).first()