Subversion Repositories SmartDukaan

Rev

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

Rev 8491 Rev 8497
Line 1169... Line 1169...
1169
        hold_inventory_detail.item_id = itemId 
1169
        hold_inventory_detail.item_id = itemId 
1170
        hold_inventory_detail.warehouse_id = warehouseId 
1170
        hold_inventory_detail.warehouse_id = warehouseId 
1171
        hold_inventory_detail.held = holdQuantity 
1171
        hold_inventory_detail.held = holdQuantity 
1172
        hold_inventory_detail.source = source
1172
        hold_inventory_detail.source = source
1173
    else:
1173
    else:
1174
        hold_inventory_detail.held = holdQuantity
-
 
1175
        diffTobeAddedInCIS = holdQuantity - hold_inventory_detail.held
1174
        diffTobeAddedInCIS = holdQuantity - hold_inventory_detail.held
-
 
1175
        hold_inventory_detail.held = holdQuantity
1176
        
1176
        
1177
    current_inventory_snapshot = CurrentInventorySnapshot.get_by(item_id=itemId, warehouse_id=warehouseId)
1177
    current_inventory_snapshot = CurrentInventorySnapshot.get_by(item_id=itemId, warehouse_id=warehouseId)
1178
    if not current_inventory_snapshot:
1178
    if not current_inventory_snapshot:
1179
        current_inventory_snapshot = CurrentInventorySnapshot()
1179
        current_inventory_snapshot = CurrentInventorySnapshot()
1180
        current_inventory_snapshot.item_id = itemId
1180
        current_inventory_snapshot.item_id = itemId