Agent Master Entry

Agent Details

Client ID or Name @for (client of clientOptions; track client.id) {
{{ client.id }} {{ client.displayName }} {{ client.officeName }}
} @if (clientListIsPartial) { Showing {{ clientOptions.length }} of {{ clientTotal }} — type a name to find the rest }
@if (agentForm.get('clientId')?.hasError('pattern')) { Pick a client from the list } @else if (clientAlreadyAgent) { This client is already agent {{ clientAlreadyAgent }} } @else if (clientAgeProblem) { {{ clientAgeProblem }} } @else if (clientOtherBranch) { This client belongs to another branch } @else 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) { {{ savingsAccountTypeCodes[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 From the client's record

Guarantor's Detail

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

No guarantors added yet.

} @for (guarantor of guarantors.controls; track guarantor; let i = $index) {
Client ID or Name @for (client of guarantorOptionsFor(guarantor); track client.id) {
{{ client.id }} {{ client.displayName }} {{ client.officeName }}
}
@if (guarantor.get('clientId')?.hasError('selfGuarantor')) { The agent cannot be their own guarantor } @else if (guarantor.get('clientId')?.hasError('duplicateGuarantor')) { This client is already a guarantor above } @else if (guarantor.get('clientId')?.hasError('pattern')) { Pick a client from the list }
Guarantor Name Address 1 Address 2 City Pin Code Telephone
}

Balances

Agent Current Balance Agent Opening Balance