| Line 365... |
Line 365... |
| 365 |
__create_recharge_voucher_tracker(order, voucherAmount, VoucherType.SPICEDECK_MOBILE)
|
365 |
__create_recharge_voucher_tracker(order, voucherAmount, VoucherType.SPICEDECK_MOBILE)
|
| 366 |
#Note 2 Buy back Offer
|
366 |
#Note 2 Buy back Offer
|
| 367 |
if item_id in (7974, 7558) and transaction.coupon_code is not None and transaction.coupon_code.lower() == "note2buyback":
|
367 |
if item_id in (7974, 7558) and transaction.coupon_code is not None and transaction.coupon_code.lower() == "note2buyback":
|
| 368 |
order.status = OrderStatus.COD_VERIFICATION_PENDING
|
368 |
order.status = OrderStatus.COD_VERIFICATION_PENDING
|
| 369 |
order.statusDescription = "Note 2 Buy Back Offer - Approval Pending from CRM Team"
|
369 |
order.statusDescription = "Note 2 Buy Back Offer - Approval Pending from CRM Team"
|
| 370 |
|
370 |
order.otg = False
|
| 371 |
|
371 |
|
| 372 |
elif new_status == TransactionStatus.COD_IN_PROCESS:
|
372 |
elif new_status == TransactionStatus.COD_IN_PROCESS:
|
| 373 |
for order in transaction.orders:
|
373 |
for order in transaction.orders:
|
| 374 |
order.status = OrderStatus.COD_VERIFICATION_PENDING
|
374 |
order.status = OrderStatus.COD_VERIFICATION_PENDING
|
| 375 |
order.statusDescription = "Verification Pending"
|
375 |
order.statusDescription = "Verification Pending"
|
| Line 424... |
Line 424... |
| 424 |
|
424 |
|
| 425 |
#Note 2 Buy back Offer
|
425 |
#Note 2 Buy back Offer
|
| 426 |
if item_id in (7974, 7558) and transaction.coupon_code is not None and transaction.coupon_code.lower() == "note2buyback":
|
426 |
if item_id in (7974, 7558) and transaction.coupon_code is not None and transaction.coupon_code.lower() == "note2buyback":
|
| 427 |
order.status = OrderStatus.COD_VERIFICATION_PENDING
|
427 |
order.status = OrderStatus.COD_VERIFICATION_PENDING
|
| 428 |
order.statusDescription = "Note 2 Buy Back Offer - Approval Pending from CRM Team"
|
428 |
order.statusDescription = "Note 2 Buy Back Offer - Approval Pending from CRM Team"
|
| 429 |
|
429 |
order.otg = False
|
| - |
|
430 |
|
| 430 |
session.commit()
|
431 |
session.commit()
|
| 431 |
|
432 |
|
| 432 |
try:
|
433 |
try:
|
| 433 |
if order.source == OrderSource.WEBSITE:
|
434 |
if order.source == OrderSource.WEBSITE:
|
| 434 |
if new_status == TransactionStatus.COD_IN_PROCESS:
|
435 |
if new_status == TransactionStatus.COD_IN_PROCESS:
|