From 5372d9b046bb971f5f40db469f5673a4dbc4affc Mon Sep 17 00:00:00 2001 From: karthik Date: Sat, 9 Aug 2025 12:57:14 +0530 Subject: [PATCH] fix : confrim button will show if rows (data) are present --- .../components/middle-section/middle-section.component.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/btc-UI/src/app/components/middle-section/middle-section.component.ts b/btc-UI/src/app/components/middle-section/middle-section.component.ts index 8c97d8e..f7a33bb 100755 --- a/btc-UI/src/app/components/middle-section/middle-section.component.ts +++ b/btc-UI/src/app/components/middle-section/middle-section.component.ts @@ -65,6 +65,12 @@ export class MiddleSectionComponent implements OnInit, OnDestroy { this.filledRows = [...rows, ...emptyRows].slice(0, 5); this.calculateTotal(); + + // Show Confirm button only if at least one row has data (label and numbers) + // and only after repeat is clicked (showRepeatTicket flag) + this.showConfirmButton = this.showRepeatTicket && this.filledRows.some( + row => row.label && row.numbers && row.numbers.length > 0 + ); } showSalesTotal: boolean = false;