Ledger now showing running totals.
This commit is contained in:
@@ -36,7 +36,7 @@ export interface IssueDialogFormData {
|
||||
],
|
||||
})
|
||||
export class IssueDialogComponent {
|
||||
dialogRef = inject<MatDialogRef<IssueDialogComponent>>(MatDialogRef);
|
||||
readonly dialogRef = inject<MatDialogRef<IssueDialogComponent, Inventory>>(MatDialogRef);
|
||||
data = inject<{
|
||||
inventory: Inventory;
|
||||
date: string;
|
||||
|
||||
@@ -88,16 +88,11 @@ export interface IssueFormModel {
|
||||
DecimalPipe,
|
||||
CurrencyPipe,
|
||||
LocalTimePipe,
|
||||
|
||||
SkeletonLoaderComponent,
|
||||
ErrorStateComponent,
|
||||
],
|
||||
})
|
||||
export class IssueComponent {
|
||||
id = input(null, { transform: (v: string | null | undefined) => v ?? null });
|
||||
d = input(null, { transform: (v: string | null | undefined) => v ?? null });
|
||||
type = signal('Issue');
|
||||
|
||||
private router = inject(Router);
|
||||
private dialog = inject(MatDialog);
|
||||
private snackBar = inject(MatSnackBar);
|
||||
@@ -107,10 +102,11 @@ export class IssueComponent {
|
||||
private batchSer = inject(BatchService);
|
||||
private issueGridSer = inject(IssueGridService);
|
||||
private costCentreSer = inject(CostCentreService);
|
||||
|
||||
sortActive = signal('');
|
||||
sortDirection = signal('');
|
||||
|
||||
id = input(null, { transform: (v: string | null | undefined) => v ?? null });
|
||||
d = input(null, { transform: (v: string | null | undefined) => v ?? null });
|
||||
type = signal('Issue');
|
||||
itemResource = this.ser.getVoucher(this.id, this.type, signal(null), this.d);
|
||||
item = linkedSignal(() => this.itemResource.value() ?? new Voucher());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user