diff --git a/bookie/src/app/sales/bills/bills.component.html b/bookie/src/app/sales/bills/bills.component.html
index 24ddc75..85b2ac6 100644
--- a/bookie/src/app/sales/bills/bills.component.html
+++ b/bookie/src/app/sales/bills/bills.component.html
@@ -1,6 +1,6 @@
Bill
-
+
Bill / KOT number
diff --git a/bookie/src/app/sales/bills/bills.component.ts b/bookie/src/app/sales/bills/bills.component.ts
index 8839335..e41ab08 100644
--- a/bookie/src/app/sales/bills/bills.component.ts
+++ b/bookie/src/app/sales/bills/bills.component.ts
@@ -37,7 +37,6 @@ import { VoucherType } from './voucher-type';
AsyncPipe,
CurrencyPipe,
MatButtonModule,
-
MatCheckboxModule,
MatIconModule,
MatTableModule,
@@ -64,7 +63,6 @@ export class BillsComponent implements OnInit {
this.bs.loadData(data.item, data.updateTable);
});
this.getPax();
- this.dataSource = new BillsDataSource(this.bs.dataObs);
}
getPax(): void {
@@ -188,6 +186,13 @@ export class BillsComponent implements OnInit {
}
}
+ trackByKotProductId(index: number, row: BillViewItem): string {
+ // Fallbacks in case fields are undefined/null
+ const kotId = row.kotId ?? '';
+ const productId = row.productId ?? '';
+ return `${kotId}_${productId}`;
+ }
+
addOne(item: BillViewItem): void {
this.bs.addOne(item);
}