Subversion Repositories SmartDukaan

Rev

Rev 7861 | Rev 7945 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7861 Rev 7903
Line 425... Line 425...
425
            
425
            
426
            catalog_client = CatalogClient().get_client()
426
            catalog_client = CatalogClient().get_client()
427
            voucherAmount = catalog_client.getVoucherAmount(item_id, VoucherType.SPICEDECK_MOBILE)
427
            voucherAmount = catalog_client.getVoucherAmount(item_id, VoucherType.SPICEDECK_MOBILE)
428
            if voucherAmount:
428
            if voucherAmount:
429
                __create_recharge_voucher_tracker(order, voucherAmount, VoucherType.SPICEDECK_MOBILE)
429
                __create_recharge_voucher_tracker(order, voucherAmount, VoucherType.SPICEDECK_MOBILE)
430
                
-
 
431
            #Note 2 Buy back Offer    
-
 
432
            if item_id in (7974, 7558) and transaction.coupon_code is not None and transaction.coupon_code.lower() == "note2buyback":    
-
 
433
                order.status = OrderStatus.COD_VERIFICATION_PENDING
-
 
434
                order.statusDescription = "Note 2 Buy Back Offer - Approval Pending from CRM Team"
-
 
435
                order.otg = False
-
 
-
 
430
 
436
                                    
431
                                    
437
    session.commit()
432
    session.commit()
438
 
433
 
439
    if new_status in (TransactionStatus.AUTHORIZED, TransactionStatus.FLAGGED, TransactionStatus.COD_IN_PROCESS):
434
    if new_status in (TransactionStatus.AUTHORIZED, TransactionStatus.FLAGGED, TransactionStatus.COD_IN_PROCESS):
440
        try:
435
        try: