Issue #21300:exclude deleted transactions from beginning balance