| Line 111... |
Line 111... |
| 111 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(3).get(destination_pin)
|
111 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(3).get(destination_pin)
|
| 112 |
if item_selling_price <= providerPrepaidLimit:
|
112 |
if item_selling_price <= providerPrepaidLimit:
|
| 113 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
113 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| 114 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
114 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 115 |
return 3, iscod, otgAvailable
|
115 |
return 3, iscod, otgAvailable
|
| 116 |
|
116 |
|
| - |
|
117 |
if billingWarehouseId not in [12,13] and serviceable_location_cache.get(7).has_key(destination_pin):
|
| - |
|
118 |
if item_selling_price < 3000 and serviceable_location_cache.get(1).has_key(destination_pin):
|
| - |
|
119 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(1).get(destination_pin)
|
| - |
|
120 |
if item_selling_price <= providerPrepaidLimit:
|
| - |
|
121 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| - |
|
122 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| - |
|
123 |
return 1, iscod, otgAvailable
|
| - |
|
124 |
else:
|
| - |
|
125 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(7).get(destination_pin)
|
| - |
|
126 |
if item_selling_price <= providerPrepaidLimit:
|
| - |
|
127 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| - |
|
128 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| - |
|
129 |
return 7, iscod, otgAvailable
|
| - |
|
130 |
|
| 117 |
if serviceable_location_cache.get(1).has_key(destination_pin):
|
131 |
if serviceable_location_cache.get(1).has_key(destination_pin):
|
| 118 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(1).get(destination_pin)
|
132 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(1).get(destination_pin)
|
| 119 |
if item_selling_price <= providerPrepaidLimit:
|
133 |
if item_selling_price <= providerPrepaidLimit:
|
| 120 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
134 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| 121 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
135 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 122 |
return 1, iscod, otgAvailable
|
136 |
return 1, iscod, otgAvailable
|
| 123 |
|
- |
|
| 124 |
#Start:- Added by Manish Sharma for fedex Integration- Shipment Creation on 31-Jul-2013
|
- |
|
| 125 |
if serviceable_location_cache.get(7).has_key(destination_pin):
|
- |
|
| 126 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(7).get(destination_pin)
|
- |
|
| 127 |
if item_selling_price <= providerPrepaidLimit:
|
- |
|
| 128 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
- |
|
| 129 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
- |
|
| 130 |
return 7, iscod, otgAvailable
|
- |
|
| 131 |
#End:- Added by Manish Sharma for fedex Integration- Shipment Creation on 31-Jul-2013
|
- |
|
| 132 |
|
137 |
|
| 133 |
else:
|
138 |
else:
|
| 134 |
return None, False, False
|
139 |
return None, False, False
|
| 135 |
|
140 |
|
| 136 |
def get_destination_code(providerId, pinCode):
|
141 |
def get_destination_code(providerId, pinCode):
|