...
So, in a simplified way, if the system says the Repayment Mode A shall allocate funds to Purpose1, Purpose2, Purpose3, and Purpose 4, the system will first try to cover Purpose1 in full. If there is a leftover, it will move on to Purpose2. And so on.
When registering a payment, the Back-Office user can select repayment mode manually
There are default system-wide modes that are always available
The system administrator can also create new repayment modes
When registering a payment, the Back-Office user can select repayment mode manually
If the funds are charged automatically, the default mode is applied.