| Line 2355... |
Line 2355... |
| 2355 |
print "Exception in scheduling alert in ShippedFromWarehouse method"
|
2355 |
print "Exception in scheduling alert in ShippedFromWarehouse method"
|
| 2356 |
print e
|
2356 |
print e
|
| 2357 |
|
2357 |
|
| 2358 |
for logisticsTxnId, ordersList in logisticsTxnIdOrdersMap.iteritems():
|
2358 |
for logisticsTxnId, ordersList in logisticsTxnIdOrdersMap.iteritems():
|
| 2359 |
if enqueue_delivery_success_mail(logisticsTxnId, ordersList) :
|
2359 |
if enqueue_delivery_success_mail(logisticsTxnId, ordersList) :
|
| 2360 |
order = orderList[0]
|
2360 |
order = ordersList[0]
|
| 2361 |
if order.transaction.payment_option == capitalFloatPayMethod:
|
2361 |
if order.transaction.payment_option == capitalFloatPayMethod:
|
| 2362 |
total_amount = 0
|
2362 |
total_amount = 0
|
| 2363 |
for ordObj in orderList:
|
2363 |
for ordObj in ordersList:
|
| 2364 |
total_amount = total_amount + ordObj.total_amount + ordObj.shippingCost - ordObj.gvAmount
|
2364 |
total_amount = total_amount + ordObj.total_amount + ordObj.shippingCost - ordObj.gvAmount
|
| 2365 |
creditObj = __creditHistoryObj(order.customer_id, 1, order.transaction.id, total_amount, CreditTxnType.LOAN, order.logisticsTransactionId)
|
2365 |
creditObj = __creditHistoryObj(order.customer_id, 1, order.transaction.id, total_amount, CreditTxnType.LOAN, order.logisticsTransactionId)
|
| 2366 |
creditTxns = []
|
2366 |
creditTxns = []
|
| 2367 |
creditTxns.append(creditObj)
|
2367 |
creditTxns.append(creditObj)
|
| 2368 |
try:
|
2368 |
try:
|