Subversion Repositories SmartDukaan

Rev

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

Rev 11912 Rev 11980
Line 407... Line 407...
407
            
407
            
408
            catalog_client = CatalogClient().get_client() 
408
            catalog_client = CatalogClient().get_client() 
409
            voucherAmount = catalog_client.getVoucherAmount(item_id, VoucherType.SPICEDECK_MOBILE)
409
            voucherAmount = catalog_client.getVoucherAmount(item_id, VoucherType.SPICEDECK_MOBILE)
410
            if voucherAmount:
410
            if voucherAmount:
411
                __create_recharge_voucher_tracker(order, voucherAmount, VoucherType.SPICEDECK_MOBILE)
411
                __create_recharge_voucher_tracker(order, voucherAmount, VoucherType.SPICEDECK_MOBILE)
412
            #Note 2 Buy back Offer
-
 
413
            if item_id in (7974, 7558) and transaction.coupon_code is not None and transaction.coupon_code.lower() == "note2buyback":    
-
 
414
                order.status = OrderStatus.COD_VERIFICATION_PENDING
-
 
415
                order.statusDescription = "Note 2 Buy Back Offer - Approval Pending from CRM Team"
-
 
416
                order.otg = False
-
 
417
                                
412
                                
418
    elif new_status == TransactionStatus.COD_IN_PROCESS:
413
    elif new_status == TransactionStatus.COD_IN_PROCESS:
419
        for order in transaction.orders:
414
        for order in transaction.orders:
420
            order.status = OrderStatus.COD_VERIFICATION_PENDING
415
            order.status = OrderStatus.COD_VERIFICATION_PENDING
421
            order.statusDescription = "Verification Pending"
416
            order.statusDescription = "Verification Pending"