amount entered is posted both on debit and credit on customer statement, thus, not changing the running balance, when making a credit or discount. version 20.7.47.
Please show the edit screen for the Credit Note transaction and a drill down on the customer account
Also illustrate the problem you claim to have with discounts. Discounts do not show on customer statements. And credit notes are posting and displaying correctly as credits only.
If you are having a problem, @roger3820, you have entered something incorrectly.