@if (pendingLoading) {
Reading this agent's entries...
} @else if (pendingEntries.length === 0) {
{{ agentInfo.name }} has nothing outstanding up to this date.
} @else {
@for (entry of pendingEntries; track entry.id) {
{{ entry.entryDate | dateFormat }}
{{ entry.partyCode }}
{{ entry.partyName }}
{{ entry.transactionMode }}
@if (entry.advanceDays) {
· {{ entry.advanceDays }}d advance
}
@if (entry.arrearsDays) {
· {{ entry.arrearsDays }}d previous
}
{{ entry.amount | number: '1.2-2' }}
}
{{ pendingEntries.length }} {{ pendingEntries.length === 1 ? 'entry' : 'entries' }}
{{ pendingTotal | number: '1.2-2' }}
Everything {{ agentInfo.name }} wrote down and has not handed in yet, up to this date, customer by
customer. The cash and its receipts are under Agent Tran.
}
}
@if (isAgentTran && agentInfo.name) {
@if (!agentGlCode) {
{{ agentInfo.name }} has no GL account, so the cashier has nowhere to take their cash. Set one on Agent
Master.
} @else {
Agent GL: {{ agentGlCode }}{{ agentGlName ? ' · ' + agentGlName : '' }} — the cashier
takes {{ agentInfo.name }}'s cash into this GL (Entry Type DDS).
}
To take
{{ agentOwed | number: '1.2-2' }}
Received (approved)
{{ agentReceived | number: '1.2-2' }}
0">
Still to take
{{ agentBalance | number: '1.2-2' }}
@if (agentReceivedBeyondDay > 0) {
{{ agentReceivedBeyondDay | number: '1.2-2' }} received at the counter is more than everything outstanding
up to {{ entryForm.get('transactionDate')?.value | dateFormat }}. Check the voucher was taken for the
right agent.
}
@if (agentWaiting > 0) {
{{ agentWaiting | number: '1.2-2' }} more is at the counter awaiting the manager's approval.
}
Outstanding entries up to {{ entryForm.get('transactionDate')?.value | dateFormat }}
@if (agentMoneyLoading) {
Reading this agent's entries...
} @else if (agentDays.length === 0) {
{{ agentInfo.name }} has nothing outstanding.
} @else {
@for (day of agentDays; track day.date) {
{{ day.date | dateFormat }}
{{ day.entries.length }} {{ day.entries.length === 1 ? 'entry' : 'entries' }}
{{ day.total | number: '1.2-2' }}
@if (agentOpenDay === day.date) {
@for (entry of day.entries; track entry.id) {
{{ entry.partyCode }}
{{ entry.partyName }}
{{ entry.transactionMode }}
@if (entry.advanceDays) {
· {{ entry.advanceDays }}d advance
}
@if (entry.arrearsDays) {
· {{ entry.arrearsDays }}d previous
}
{{ entry.amount | number: '1.2-2' }}
}
}
}
}
Cashier receipts
@if (agentReceipts.length === 0) {
No DDS receipt on {{ agentInfo.name }}'s GL account{{ agentGlCode ? ' ' + agentGlCode : '' }} waiting to
be applied.
} @else {
@for (receipt of agentReceipts; track receipt.id) {
{{ receipt.voucherNo }}
{{ receipt.txnDate | dateFormat }}
{{ receipt.cashierName || '—' }}
{{ receipt.status === 'APPROVED' ? 'Approved' : 'Awaiting manager' }}
{{ receipt.amount | number: '1.2-2' }}
}
}
}
@if (isWithdrawDeposite) {