Subversion Repositories SmartDukaan

Rev

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

Rev 16025 Rev 17530
Line 91... Line 91...
91
def get_logistics_estimation(destination_pin, item_selling_price, weight, type, billingWarehouseId):
91
def get_logistics_estimation(destination_pin, item_selling_price, weight, type, billingWarehouseId):
92
    logging.info("Getting logistics estimation for pincode:" + destination_pin )
92
    logging.info("Getting logistics estimation for pincode:" + destination_pin )
93
    
93
    
94
    provider_id, codAllowed, otgAvailable = __get_logistics_provider_for_destination_pincode(destination_pin, item_selling_price, weight, type, billingWarehouseId)
94
    provider_id, codAllowed, otgAvailable = __get_logistics_provider_for_destination_pincode(destination_pin, item_selling_price, weight, type, billingWarehouseId)
95
    
95
    
-
 
96
    logging.info("Provider Id:  " + str(provider_id) +" codAllowed: "+str(codAllowed)+" otgAvailable: "+str(otgAvailable)+ " item_selling_price: "+str(item_selling_price))
-
 
97
    
96
    if item_selling_price > 60000 or item_selling_price <= 250:
98
    if item_selling_price > 60000:# or item_selling_price <= 250:
97
        codAllowed = False
99
        codAllowed = False
98
    
100
    
99
    warehouse_location = warehouse_location_cache.get(billingWarehouseId)
101
    warehouse_location = warehouse_location_cache.get(billingWarehouseId)
100
    if warehouse_location is None:
102
    if warehouse_location is None:
101
        warehouse_location = 0
103
        warehouse_location = 0