| Line 243... |
Line 243... |
| 243 |
print "antecedentPrice else ",antecedentPrice
|
243 |
print "antecedentPrice else ",antecedentPrice
|
| 244 |
if antecedentPrice is not None and antecedentPrice[0] is not None:
|
244 |
if antecedentPrice is not None and antecedentPrice[0] is not None:
|
| 245 |
if float(math.ceil(autoIncrementItem.ourSellingPrice+max(10,.01*autoIncrementItem.ourSellingPrice))-math.ceil(antecedentPrice[0]+max(10,.01*antecedentPrice[0])))/math.ceil(antecedentPrice[0]+max(10,.01*antecedentPrice[0]))>.02:
|
245 |
if float(math.ceil(autoIncrementItem.ourSellingPrice+max(10,.01*autoIncrementItem.ourSellingPrice))-math.ceil(antecedentPrice[0]+max(10,.01*antecedentPrice[0])))/math.ceil(antecedentPrice[0]+max(10,.01*antecedentPrice[0]))>.02:
|
| 246 |
markReasonForItem(autoIncrementItem,'Maximum price increase in last 24 hours should be 2%',Decision.AUTO_INCREMENT_FAILED)
|
246 |
markReasonForItem(autoIncrementItem,'Maximum price increase in last 24 hours should be 2%',Decision.AUTO_INCREMENT_FAILED)
|
| 247 |
continue
|
247 |
continue
|
| - |
|
248 |
if autoIncrementItem.warehouseLocation==1:
|
| - |
|
249 |
fcLocation = 0
|
| - |
|
250 |
elif autoIncrementItem.warehouseLocation==2:
|
| - |
|
251 |
fcLocation = 1
|
| - |
|
252 |
else:
|
| - |
|
253 |
pass
|
| 248 |
fbaSaleSnapshot = transaction_client.getAmazonFbaSalesLatestSnapshotForItemLocationWise(autoIncrementItem.item_id,autoIncrementItem.warehouseLocation)
|
254 |
fbaSaleSnapshot = transaction_client.getAmazonFbaSalesLatestSnapshotForItemLocationWise(autoIncrementItem.item_id,fcLocation)
|
| 249 |
if getLastDaySale(fbaSaleSnapshot)<=2:
|
255 |
if getLastDaySale(fbaSaleSnapshot)<=2:
|
| 250 |
markReasonForItem(autoIncrementItem,'Last day sale is less than 3',Decision.AUTO_INCREMENT_FAILED)
|
256 |
markReasonForItem(autoIncrementItem,'Last day sale is less than 3',Decision.AUTO_INCREMENT_FAILED)
|
| 251 |
continue
|
257 |
continue
|
| 252 |
|
258 |
|
| 253 |
autoIncrementItem.ourEnoughStock = False
|
259 |
autoIncrementItem.ourEnoughStock = False
|