Subversion Repositories SmartDukaan

Rev

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

Rev 22704 Rev 22705
Line 3920... Line 3920...
3920
    Reduce the reservation count for all line items of the given order.
3920
    Reduce the reservation count for all line items of the given order.
3921
    '''
3921
    '''
3922
    
3922
    
3923
    if refund:
3923
    if refund:
3924
        if order.wallet_amount > 0:
3924
        if order.wallet_amount > 0:
3925
            refund_to_wallet(order.customer_id, order.wallet_amount, order.transaction.id, WalletReferenceType.PURCHASE, "Refunded angainst cancellation of Order Id -" + order.id)
3925
            refund_to_wallet(order.customer_id, order.wallet_amount, order.transaction.id, WalletReferenceType.PURCHASE, "Refunded angainst cancellation of Order Id -" + str(order.id))
3926
        if order.cod == False and order.status == OrderStatus.PAYMENT_FLAGGED_DENIED:
3926
        if order.cod == False and order.status == OrderStatus.PAYMENT_FLAGGED_DENIED:
3927
            order.net  
3927
            order.net  
3928
    try:
3928
    try:
3929
        inventoryClient = InventoryClient().get_client()
3929
        inventoryClient = InventoryClient().get_client()
3930
        for lineitem in order.lineitems:
3930
        for lineitem in order.lineitems: