Re-look at Account Transfers
Accounting Rules:
Based on the discussion in the comments below, accounting rules shall be the same for both inter/ intra branch transactions
Scenario 1) Disburse loan to a savings from Branch A to Branch B
Loan disbursal should: Debit Loan Portfolio and Credit a Liability account for "Branch Liability Transfer"
Savings should: Credit Savings Control and Debit a Liability account for "Branch Liability Transfer"
Scenario 2) Transfer from savings to Loan from Branch A to Branch B
Savings withdrawal in Branch A should: Debit Savings Control and Credits a Liability account for "Branch Liability Transfer"
Loan repayment in Branch B should: Credit Income from interest, income from fees, loan portfolio, income from penalty and Debit the account for "Branch Liability Transfer"
Scenario 3) Transfer from savings(pr-a) to savings(pr-b) where pr-a is a withdrawal and pr-b is a deposit from Branch A to Branch B
savings (pr-a) in Branch A : Debit pr-a' Savings Control and Credits a Liability account for "Branch Liability Transfer"
savings (b) in Branch B: Debits a Liability account for "Branch Liability Transfer" and Credit b's Savings Control
Branch Liability Transfer account shall be defined at an organizational Level
[Conversation with @pramod : Under https://demo.openmf.org/#/accounting, lets add a new section for "Map Organizational Accounts"
Here, a user will be able to edit predefined accounting types like "Suspense account for Liability Transfer", "Suspense account for Asset Transfer" or "Teller Cash Account". Need a set of API's for the same
My thoughts:
a) A disbursal of a loan to a savings account does not impact fund sources in anyway (i.e. it does not impact cash or bank accounts in anyway irrespective of whether the "Fund Source" for loan and "Savings Reference" refers to the same account or not). It is a notional money transfer with no actual money being transferred. Hence, we can simply do the following:
Debit: Loan Portfolio (i.e. the asset account selected for the Loan Product - under Loan Portfolio)
Credit: Savings Control (i.e. the liability account selected for the Savings Product - under Saving Control)
b) For inter-branch transfers - example transfer from Savings1 (Product X, at Branch A) to Savings2 (Product Y, at Branch B)
Debit: Savings Control (i.e. the liability account selected for the Savings Product X - under Saving Control) for Branch A
Credit: Savings Control (i.e. the liability account selected for the Savings Product Y - under Saving Control) for Branch B
I don't think it is necessary to have a contra account in between (to first transfer to the contra account and then from contra account to Savings2) since the amount movement happens in a single transaction.
If any financial reports (trial balance, income statement etc.) are unbalanced or does not show the right entries after this, then the issue is with the report. Not the accounting entry.
Note: If any transfer happens in two steps (like transfer of clients between branches) or physical cash being transferred between 2 branches - then there is a need for a contra account in between.