A receipt from the statement closes the plan
Several times an hour, Krokul reads /api/statements/transactions/interim and takes incoming transactions with TRANTYPE C. By the payer EDRPOU code in AUT_CNTR_CRF, it finds the company, and by the SUM amount and the OSND purpose, it picks the open expected payment of that company deal. The plan becomes an actual payment dated DAT_OD, and the deal feed shows which bank payment brought the money.