Subversion Repositories SmartDukaan

Rev

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

Rev 4431 Rev 4433
Line 704... Line 704...
704
        print 'expectedDelay field for this item was Null. Resetting it to 0'
704
        print 'expectedDelay field for this item was Null. Resetting it to 0'
705
        item.expectedDelay = 0
705
        item.expectedDelay = 0
706
        
706
        
707
    ## FIXME Assign warehouse 5 (9D2) for all the hotspot products.
707
    ## FIXME Assign warehouse 5 (9D2) for all the hotspot products.
708
    #if warehouse_retid in [warehouse.id for warehouse in get_warehouses_for_vendor(1)]:
708
    #if warehouse_retid in [warehouse.id for warehouse in get_warehouses_for_vendor(1)]:
709
    if warehouse_retid in [1,2,3,4,5]:
709
    if int(warehouse_retid) in [1,2,3,4,5]:
710
        warehouse_retid = 5
710
        warehouse_retid = 5
711
        warehouse = Warehouse.get_by(id=warehouse_retid)
711
        warehouse = Warehouse.get_by(id=warehouse_retid)
712
        logisticsLocation = warehouse.logisticsLocation  
712
        logisticsLocation = warehouse.logisticsLocation  
713
        
713
        
714
    return [logisticsLocation, int(warehouse_retid), total_availability, int(item.expectedDelay)]
714
    return [logisticsLocation, int(warehouse_retid), total_availability, int(item.expectedDelay)]