Master reconciliation and statement import ama

store amount_residual in order to simplify the query by removing the union