Pay out {{ data.partyCode }}

Customer {{ data.partyName }}
Matured on {{ data.maturityDate | dateFormat }}
Opened on {{ data.openingDate | dateFormat }}
@if (breakdown) {
Deposits collected {{ breakdown.deposits | number: '1.2-2' }}
@if (breakdown.transfersIn > 0) {
Transferred in + {{ breakdown.transfersIn | number: '1.2-2' }}
} @if (breakdown.transfersOut > 0) {
Transferred out − {{ breakdown.transfersOut | number: '1.2-2' }}
} @if (breakdown.other !== 0) {
Other (opening balance / adjustments) {{ breakdown.other | number: '1.2-2' }}
}
Interest @ {{ data.interestRate | number: '1.2-2' }}% {{ data.openingDate | dateFormat }} to {{ data.interestDate | dateFormat }} + {{ breakdown.interest | number: '1.2-2' }}
@if (breakdown.interestToPost > 0) {
Interest calculated, posted with this payout + {{ breakdown.interestToPost | number: '1.2-2' }}
}
}
Total payable {{ (breakdown ? breakdown.total : data.currentBalance) | number: '1.2-2' }}
@if (interestStillToCome) {

Interest from {{ data.interestDate | dateFormat }} to {{ data.maturityDate | dateFormat }} is not worked out yet - it is added when this is paid out, so the amount paid will be a little more.

}

Paying out closes {{ data.partyCode }} - the balance is nil afterwards and it takes nothing more.

@if (loading) { } @else {

Where should this go?

Into another account of theirs here @if (ownAccounts.length === 0) { {{ data.partyName }} has no other savings account at this bank } @else { Moved across today } @if (destination === 'own' && ownAccounts.length > 0) { } Park in Sundry When the customer has no account here - held in the bank's Sundry account in their name @if (destination === 'other') { Park in GL account @for (account of sundryOptions; track account.id) { {{ account.glCode }} · {{ account.name }} } @if (sundryOptions.length === 0) { No liability GL matches } @if (!sundryGlAccountId) { Search and pick your bank's Sundry GL account } @else { The balance is held here in the customer's name until it is paid to them } } @if (destination === 'other') {
The money comes off {{ data.partyCode }} today and is held in the Sundry account chosen above against {{ data.partyName }} until it is paid to them - so it is accounted for the whole time and nothing is lost.
} }