Agent Master Entry

Agent Details

Client ID @if (clientLookupFailed) { No client found with this ID } @else if (loadedClientName) { {{ loadedClientName }} } Agent Code Agent Name ID Agent Address (Line 1) Agent Address (Line 2) Agent City Agent PinCode Agent Telephone Home Branch @for (office of offices; track office.id) { {{ office.name }} } The branch this agent's collections belong to GL Account @for (account of glAccounts; track account.id) { {{ account.glCode }} · {{ account.name }} } This agent's collections pass through it. One agent to an account. Agent Saving A/C Type @for (accountType of savingsAccountTypes; track accountType) { {{ accountType }} } @if (savingsAccountTypes.length === 0) { @if (loadedClientName) { {{ loadedClientName }} has no savings account — commission can only be paid into one } @else { Enter a Client ID first — types come from that client's own accounts } } Agent Saving A/C No @for (account of accountsOfChosenType; track account.id) { {{ account.accountNo }} } @if (accountsOfChosenType.length === 0) { Choose an A/C Type first } Agent Opening Date Agent Birth Date

Guarantor's Detail

@if (guarantors.length === 0) {

No guarantors added yet.

} @for (guarantor of guarantors.controls; track guarantor; let i = $index) {
Client ID @if (guarantor.get('clientId')?.hasError('selfGuarantor')) { An agent cannot be its own guarantor } Guarantor Name Address 1 Address 2 City Pin Code Telephone
}

Balances

Agent Current Balance Agent Opening Balance