POS return error


When a sales invoice is created and the payment method is cash, the process is done correctly, but the problem is when the invoice is returned and the method of payment for the return is determined. Cash is not debited from the cash account, but is transferred to the bank account

any support ??