Merge pull request #25580 from ceefour/ceefour/period-closing-voucher-25572

fix(accounts): Get balance for Profit and Loss accounts, only including valid transactions (not cancelled)