| Line 125... |
Line 125... |
| 125 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(1).get(destination_pin)
|
125 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(1).get(destination_pin)
|
| 126 |
if item_selling_price <= providerPrepaidLimit:
|
126 |
if item_selling_price <= providerPrepaidLimit:
|
| 127 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
127 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| 128 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
128 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 129 |
return 1, iscod, otgAvailable
|
129 |
return 1, iscod, otgAvailable
|
| - |
|
130 |
|
| - |
|
131 |
#Start:- Added by Manish Sharma for fedex Integration- Shipment Creation on 31-Jul-2013
|
| - |
|
132 |
elif serviceable_location_cache.get(7).has_key(destination_pin):
|
| - |
|
133 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(7).get(destination_pin)
|
| - |
|
134 |
if item_selling_price <= providerPrepaidLimit:
|
| - |
|
135 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| - |
|
136 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| - |
|
137 |
return 7, iscod, otgAvailable
|
| - |
|
138 |
#End:- Added by Manish Sharma for fedex Integration- Shipment Creation on 31-Jul-2013
|
| 130 |
else:
|
139 |
else:
|
| 131 |
return None, False, False
|
140 |
return None, False, False
|
| 132 |
|
141 |
|
| 133 |
def get_destination_code(providerId, pinCode):
|
142 |
def get_destination_code(providerId, pinCode):
|
| 134 |
serviceableLocationDetail = ServiceableLocationDetails.query.filter_by(provider_id = providerId, dest_pincode = pinCode).one()
|
143 |
serviceableLocationDetail = ServiceableLocationDetails.query.filter_by(provider_id = providerId, dest_pincode = pinCode).one()
|