Subversion Repositories SmartDukaan

Rev

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

Rev 9154 Rev 9964
Line 75... Line 75...
75
 
75
 
76
def get_logistics_estimation(destination_pin, item_selling_price, weight, type, billingWarehouseId):
76
def get_logistics_estimation(destination_pin, item_selling_price, weight, type, billingWarehouseId):
77
    logging.info("Getting logistics estimation for pincode:" + destination_pin )
77
    logging.info("Getting logistics estimation for pincode:" + destination_pin )
78
    
78
    
79
    provider_id, codAllowed, otgAvailable = __get_logistics_provider_for_destination_pincode(destination_pin, item_selling_price, weight, type, billingWarehouseId)
79
    provider_id, codAllowed, otgAvailable = __get_logistics_provider_for_destination_pincode(destination_pin, item_selling_price, weight, type, billingWarehouseId)
-
 
80
    
-
 
81
    if item_selling_price > 60000 or item_selling_price <= 250:
-
 
82
        codAllowed = False
-
 
83
    
80
    warehouse_location = 0
84
    warehouse_location = 0
81
    if billingWarehouseId in [12,13]:
85
    if billingWarehouseId in [12,13]:
82
        warehouse_location = 1
86
        warehouse_location = 1
83
        
87
        
84
    if not provider_id:
88
    if not provider_id: