Subversion Repositories SmartDukaan

Rev

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

Rev 23446 Rev 23457
Line 4480... Line 4480...
4480
    if not warehouse.billingWarehouseId:
4480
    if not warehouse.billingWarehouseId:
4481
        raise TransactionServiceException(119, "Shifting of warehouse allowed to warehouse with billing support only")
4481
        raise TransactionServiceException(119, "Shifting of warehouse allowed to warehouse with billing support only")
4482
 
4482
 
4483
    # If One gives a billing warehouse for warehouse shift, we should assign order to the GOOD warehouse
4483
    # If One gives a billing warehouse for warehouse shift, we should assign order to the GOOD warehouse
4484
    # present within it with maximum availability
4484
    # present within it with maximum availability
-
 
4485
    stateId = -1
4485
    userClient, isFofo = __is_Fofo(userClient, order.customer_id)
4486
    userClient, isFofo = __is_Fofo(userClient, order.customer_id)
4486
    
4487
    if isFofo:
4487
    stateId = warehouse.state.id 
4488
        stateId = warehouse.state.id 
4488
    vendorWarehouse = None
4489
    vendorWarehouse = None
4489
    if warehouse.id == warehouse.billingWarehouseId:
4490
    if warehouse.id == warehouse.billingWarehouseId:
4490
        itemAvailability = inventoryClient.getItemAvailabilityAtLocation(lineitem.item_id, sourceId, stateId)
4491
        itemAvailability = inventoryClient.getItemAvailabilityAtLocation(lineitem.item_id, sourceId, stateId)
4491
 
4492
 
4492
    #if vendorWarehouse is None or vendorWarehouse.billingWarehouseId != warehouse.id:
4493
    #if vendorWarehouse is None or vendorWarehouse.billingWarehouseId != warehouse.id: