Subversion Repositories SmartDukaan

Rev

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

Rev 10185 Rev 12895
Line 367... Line 367...
367
            deliveryEstimate.delivery_delay= logisticsLocationInfo.delivery_delay
367
            deliveryEstimate.delivery_delay= logisticsLocationInfo.delivery_delay
368
    session.commit()
368
    session.commit()
369
 
369
 
370
#End:- Added by Manish Sharma for Multiple Pincode Updation on 05-Jul-2013             
370
#End:- Added by Manish Sharma for Multiple Pincode Updation on 05-Jul-2013             
371
            
371
            
-
 
372
def get_first_delivery_estimate_for_wh_location(pincode, whLocation):
-
 
373
    delEstimate = DeliveryEstimate.query.filter(DeliveryEstimate.destination_pin == pincode).filter(DeliveryEstimate.warehouse_location == whLocation).first()
-
 
374
    if delEstimate is None:
-
 
375
        return -1
-
 
376
    else:
-
 
377
        return 1
-
 
378
    
372
379