Subversion Repositories SmartDukaan

Rev

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

Rev 4368 Rev 4373
Line 653... Line 653...
653
 
653
 
654
    if item.expectedDelay is None:
654
    if item.expectedDelay is None:
655
        print 'expectedDelay field for this item was Null. Resetting it to 0'
655
        print 'expectedDelay field for this item was Null. Resetting it to 0'
656
        item.expectedDelay = 0
656
        item.expectedDelay = 0
657
    
657
    
-
 
658
    ## FIXME Assign warehouse 5 (9D2) for all the hotspot products.
-
 
659
    #if warehouse_retid in [warehouse.id for warehouse in get_warehouses_for_vendor(1)]:
-
 
660
    if warehouse_retid in [1,2,3,4,5]:
-
 
661
        warehouse_retid = 5
-
 
662
        warehouse = Warehouse.get_by(id=warehouse_retid)
-
 
663
        
658
    return [warehouse.logisticsLocation, warehouse_retid, total_availability, item.expectedDelay]
664
    return [warehouse.logisticsLocation, warehouse_retid, total_availability, item.expectedDelay]
659
 
665
 
660
def get_warehouses_for_item(item_id):
666
def get_warehouses_for_item(item_id):
661
    
667
    
662
    if not item_id:
668
    if not item_id: