diff --git a/src/app/deposits/daily-transaction-entry/daily-transaction-entry.component.ts b/src/app/deposits/daily-transaction-entry/daily-transaction-entry.component.ts index 171db5430..8519922f8 100644 --- a/src/app/deposits/daily-transaction-entry/daily-transaction-entry.component.ts +++ b/src/app/deposits/daily-transaction-entry/daily-transaction-entry.component.ts @@ -32,6 +32,7 @@ import { AlertService } from 'app/core/alert/alert.service'; import { SettingsService } from 'app/settings/settings.service'; import { Dates } from 'app/core/utils/dates'; import { announceHeldForApproval, heldForApproval } from 'app/deposits/dds-approvals/dds-approval-notice'; +import { isDdsClosed } from '../dds-status'; /** * Daily Transaction Entry component. @@ -673,7 +674,7 @@ export class DailyTransactionEntryComponent implements OnInit { this.organizationService.getParties().subscribe({ next: (parties: any) => { const all = Array.isArray(parties) ? parties : parties?.pageItems || []; - this.openParties = all.filter((party: any) => party.status === 'ACTIVE'); + this.openParties = all.filter((party: any) => !isDdsClosed(party.status)); this.fillTransferParty('creditor'); this.fillTransferParty('debit'); }, diff --git a/src/app/deposits/dds-accounts/dds-account-view/dds-account-view.component.html b/src/app/deposits/dds-accounts/dds-account-view/dds-account-view.component.html index 5007fde33..cb4e93713 100644 --- a/src/app/deposits/dds-accounts/dds-account-view/dds-account-view.component.html +++ b/src/app/deposits/dds-accounts/dds-account-view/dds-account-view.component.html @@ -24,7 +24,7 @@
The DDS accounts on file — each one a customer collected from daily.
{{ pageSubtitle }}
Open one so an agent can start collecting daily deposits against it.
- Either way, {{ data.agentCode }} is charged - {{ scheme.prematureAgentCommissionPenalty | number: '1.0-2' }}% - of the commission owed to them — the round was not kept going. -
- This customer has no other account here, so the balance is parked in the Sundry account chosen above, in their - name until it is paid to them. -
Within lock-in until {{ closableFrom | dateFormat }}
- {{ data.partyCode }} opened on {{ data.openingDate | dateFormat }} and the scheme locks it in for - {{ scheme?.prematureLockinMonths }} months. It can be closed early only if a manager approves it. -
- @if (withinLockin) { - Once approved, this closes the account. It cannot be reopened. - } @else { - This closes the account. It cannot be reopened. - } -
+ + Either way, {{ data.agentCode }} is charged + {{ scheme.prematureAgentCommissionPenalty | number: '1.0-2' }}% + of the commission owed to them — the round was not kept going. +
+ Within lock-in until {{ closableFrom | dateFormat }} +
+ {{ data.partyCode }} opened on {{ data.openingDate | dateFormat }} and the scheme locks it in for + {{ scheme?.prematureLockinMonths }} months. It can be closed early only if a manager approves it. +
Loading agent requests…
{{ loading ? 'Loading agent requests…' : 'No agent requests waiting.' }}
No agent requests waiting
There are no agents awaiting approval at this time.
{{ loading ? 'Loading slab requests…' : 'No commission slab requests waiting.' }}