Subversion Repositories SmartDukaan

Rev

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

Rev 18804 Rev 18824
Line 524... Line 524...
524
            catalog_client = CatalogClient().get_client() 
524
            catalog_client = CatalogClient().get_client() 
525
            voucherAmount = catalog_client.getVoucherAmount(item_id, VoucherType.SPICEDECK_MOBILE)
525
            voucherAmount = catalog_client.getVoucherAmount(item_id, VoucherType.SPICEDECK_MOBILE)
526
            if voucherAmount:
526
            if voucherAmount:
527
                __create_recharge_voucher_tracker(order, voucherAmount, VoucherType.SPICEDECK_MOBILE)
527
                __create_recharge_voucher_tracker(order, voucherAmount, VoucherType.SPICEDECK_MOBILE)
528
                
528
                
529
            if transaction.payment_option == capitalFloatPayMethod:
529
        if transaction.payment_option == capitalFloatPayMethod:
530
                total_amount = 0
530
            total_amount = 0
531
                singleOrder = transaction.orders[0]
531
            singleOrder = transaction.orders[0]
532
                for order in transaction.orders:
532
            for order in transaction.orders:
533
                    total_amount = total_amount + order.total_amount + order.shippingCost - order.gvAmount
533
                total_amount = total_amount + order.total_amount + order.shippingCost - order.gvAmount
534
                
534
            
535
                creditObj = __creditHistoryObj(singleOrder.customer_id, 1, transaction.id, total_amount, CreditTxnType.BLOCKED, str(transaction.id))
535
            creditObj = __creditHistoryObj(singleOrder.customer_id, 1, transaction.id, total_amount, CreditTxnType.BLOCKED, str(transaction.id))
536
                creditTxns = []
536
            creditTxns = []
537
                creditTxns.append(creditObj)
537
            creditTxns.append(creditObj)
538
                process_credit_transaction(transaction.id, singleOrder.customer_id, 1, creditTxns)
538
            process_credit_transaction(transaction.id, singleOrder.customer_id, 1, creditTxns)
539
                                
539
                                
540
    elif new_status == TransactionStatus.COD_IN_PROCESS:
540
    elif new_status == TransactionStatus.COD_IN_PROCESS:
541
        for order in transaction.orders:
541
        for order in transaction.orders:
542
            order.status = OrderStatus.COD_VERIFICATION_PENDING
542
            order.status = OrderStatus.COD_VERIFICATION_PENDING
543
            order.statusDescription = "Verification Pending"
543
            order.statusDescription = "Verification Pending"