Subversion Repositories SmartDukaan

Rev

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

Rev 23476 Rev 23482
Line 680... Line 680...
680
    if len(currentInventorySnapshots) > 0:
680
    if len(currentInventorySnapshots) > 0:
681
        for currentInventorySnapshot in currentInventorySnapshots:
681
        for currentInventorySnapshot in currentInventorySnapshots:
682
            if currentInventorySnapshot.warehouse.state.id == stateId:
682
            if currentInventorySnapshot.warehouse.state.id == stateId:
683
                availability = currentInventorySnapshot.availability - currentInventorySnapshot.reserved
683
                availability = currentInventorySnapshot.availability - currentInventorySnapshot.reserved
684
                if availability > 0:
684
                if availability > 0:
685
                    warehouse = warehouseMap[currentInventorySnapshot.warehouse.id]
685
                    warehouse = currentInventorySnapshot.warehouse
686
                totalAvailability += availability 
686
                totalAvailability += availability 
687
    if totalAvailability <= 0:
687
    if totalAvailability <= 0:
688
        warehouse = warehouseMap[virtualVendorWarehouses.get(stateId)]
688
        warehouse = warehouseMap[virtualVendorWarehouses.get(stateId)]
689
        expectedDelay = 2
689
        expectedDelay = 2
690
         
690