Subversion Repositories SmartDukaan

Rev

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

Rev 23469 Rev 23470
Line 676... Line 676...
676
    if len(currentInventorySnapshots) > 0:
676
    if len(currentInventorySnapshots) > 0:
677
        for currentInventorySnapshot in currentInventorySnapshots:
677
        for currentInventorySnapshot in currentInventorySnapshots:
678
            if currentInventorySnapshot.warehouse.state.id == stateId:
678
            if currentInventorySnapshot.warehouse.state.id == stateId:
679
                availability = currentInventorySnapshot.availability - currentInventorySnapshot.reserved
679
                availability = currentInventorySnapshot.availability - currentInventorySnapshot.reserved
680
                if availability > 0:
680
                if availability > 0:
681
                    warehouse = warehouseMap[currentInventorySnapshot.warehouseId]
681
                    warehouse = warehouseMap[currentInventorySnapshot.warehouse.id]
682
                totalAvailability += availability 
682
                totalAvailability += availability 
683
    if totalAvailability <= 0:
683
    if totalAvailability <= 0:
684
        warehouse = warehouseMap[virtualVendorWarehouses.get(stateId)]
684
        warehouse = warehouseMap[virtualVendorWarehouses.get(stateId)]
685
        expectedDelay = 2
685
        expectedDelay = 2
686
         
686