diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 09d2415c2..4fac8d9f9 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -36,6 +36,7 @@ import { ClientsModule } from './clients/clients.module'; import { GroupsModule } from './groups/groups.module'; import { CentersModule } from './centers/centers.module'; import { AccountingModule } from './accounting/accounting.module'; +import { ChequeBookModule } from './chequebook/chequebook.module'; import { SystemModule } from './system/system.module'; import { ProductsModule } from './products/products.module'; import { OrganizationModule } from './organization/organization.module'; @@ -142,6 +143,7 @@ export function HttpLoaderFactory(http: HttpClient) { GroupsModule, CentersModule, AccountingModule, + ChequeBookModule, SystemModule, ProductsModule, OrganizationModule, diff --git a/src/app/chequebook/cheque-book-detail/cheque-book-detail.component.html b/src/app/chequebook/cheque-book-detail/cheque-book-detail.component.html new file mode 100644 index 000000000..0afd956de --- /dev/null +++ b/src/app/chequebook/cheque-book-detail/cheque-book-detail.component.html @@ -0,0 +1,145 @@ + + +
| {{ 'labels.inputs.Id' | translate }} | +{{ b.id }} | +{{ 'labels.inputs.Account Type' | translate }} | +{{ b.accountType }} | +{{ 'labels.inputs.Account' | translate }} | ++ {{ b.accountNo || b.accountId }} + @if (b.clientName) { + ({{ b.clientName }}) + } + | +{{ 'labels.inputs.Office' | translate }} | +{{ b.officeName }} | +{{ 'labels.inputs.Series' | translate }} | +{{ b.seriesCode }} | +{{ 'labels.inputs.Quantity' | translate }} | ++ {{ b.noOfBooks }} {{ 'labels.inputs.books' | translate }} + @if (b.totalLeaves) { + ({{ b.totalLeaves }} {{ 'labels.inputs.leaves' | translate }}) + } + | +{{ 'labels.inputs.Status' | translate }} | ++ {{ b.status }} + | +{{ 'labels.inputs.Requested Date' | translate }} | +{{ b.requestedDate | dateFormat }} | ++ | + @if (b.status === 'REQUESTED') { + + + } + @if (b.status === 'ISSUED') { + + + } + | +
|---|
+ {{ 'labels.inputs.Requested' | translate }}: {{ issueForBook?.noOfBooks }} + {{ 'labels.inputs.books' | translate }} — {{ issueForBook?.seriesCode }} + + ({{ issueAvailableBooks }} {{ 'labels.inputs.books available' | translate }}) + +
+ +| {{ 'labels.inputs.Series Code' | translate }} | +{{ s.seriesCode }} | +{{ 'labels.inputs.Name' | translate }} | +{{ s.name }} | +{{ 'labels.inputs.Leaves Per Book' | translate }} | +{{ s.leavesPerBook }} | +{{ 'labels.inputs.Applicable Account Type' | translate }} | ++ {{ s.applicableAccountType }} + | +{{ 'labels.inputs.CTS-2010 Compliant' | translate }} | ++ {{ s.ctsCompliant ? 'Yes' : 'No' }} + | +{{ 'labels.inputs.Reorder Level' | translate }} | +{{ s.reorderLevel ?? '-' }} | +{{ 'labels.inputs.Status' | translate }} | ++ {{ s.active ? 'Active' : 'Inactive' }} + | ++ | + @if (s.active) { + + } + | +
|---|
{{ screen.description | translate }}
+| {{ 'labels.inputs.Series' | translate }} | +{{ l.seriesCode }} | +{{ 'labels.inputs.Office' | translate }} | +{{ l.officeName }} | +{{ 'labels.inputs.Leaf Range' | translate }} | +{{ l.rangeStart }} – {{ l.rangeEnd }} | +{{ 'labels.inputs.Remaining' | translate }} | ++ {{ l.remainingBooks ?? 0 }} {{ 'labels.inputs.books' | translate }} + × {{ l.leavesPerBook }}-{{ 'labels.inputs.leaf' | translate }} + ({{ l.remainingLeaves }} {{ 'labels.inputs.leaves' | translate }}) + @if (l.lowStock) { + {{ 'labels.text.Low Stock' | translate }} + } + | +{{ 'labels.inputs.Status' | translate }} | ++ {{ l.status }} + | ++ | + @if (l.status === 'AVAILABLE') { + + } + | +
|---|
| {{ 'labels.inputs.Series' | translate }} | +{{ t.seriesCode }} | +{{ 'labels.inputs.From Office' | translate }} | +{{ t.fromOfficeName }} | +{{ 'labels.inputs.To Office' | translate }} | +{{ t.toOfficeName }} | +{{ 'labels.inputs.Leaf Range' | translate }} | +{{ t.rangeStart }} – {{ t.rangeEnd }} | +{{ 'labels.inputs.Leaves' | translate }} | +{{ t.totalLeaves }} | +{{ 'labels.inputs.Status' | translate }} | ++ {{ t.status }} + | +{{ 'labels.inputs.Dispatch Date' | translate }} | +{{ t.dispatchDate | dateFormat }} | ++ | + @if (t.status === 'DISPATCHED') { + + + } + | +
|---|
Loading…
+No {{ filterStatus | lowercase }} requests
++ @if (filterStatus === 'PENDING') { + There are no pending cheque book requests waiting for review. + } @else { + No {{ filterStatus | lowercase }} cheque book requests found for this date range. + } +
+| Id | +Type | +Maker | +Submitted At | +Status | +Action | +
|---|---|---|---|---|---|
| #{{ r.id }} | ++ {{ requestTypeLabels[r.requestType] || r.requestType }} + | +{{ r.makerName || r.makerUsername }} | +{{ formatDateTime(r.submittedOn) }} | ++ {{ r.status }} + | ++ + | +