Subversion Repositories SmartDukaan

Rev

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

Rev 23606 Rev 23611
Line 685... Line 685...
685
                availability = currentInventorySnapshot.availability - currentInventorySnapshot.reserved
685
                availability = currentInventorySnapshot.availability - currentInventorySnapshot.reserved
686
                if availability > 0:
686
                if availability > 0:
687
                    warehouse = currentInventorySnapshot.warehouse
687
                    warehouse = currentInventorySnapshot.warehouse
688
                totalAvailability += availability 
688
                totalAvailability += availability 
689
    if totalAvailability <= 0:
689
    if totalAvailability <= 0:
690
        warehouse = warehouseMap[virtualVendorWarehouses.get(stateId)]
690
        warehouse = virtualVendorWarehouses.get(stateId)
691
        expectedDelay = 2
691
        expectedDelay = 2
692
         
692
         
693
    ia = get_item_availability_for_location(itemId, sourceId)
693
    ia = get_item_availability_for_location(itemId, sourceId)
694
    return [warehouse.id, expectedDelay, billingVendorWarehouses[stateId], ia[3], totalAvailability, ia[5]]
694
    return [warehouse.id, expectedDelay, billingVendorWarehouses[stateId], ia[3], totalAvailability, ia[5]]
695
                    
695