fix : hides print if confrim is not there

This commit is contained in:
karthik 2025-08-09 12:59:56 +05:30
parent 5372d9b046
commit cd53b84d0a

View File

@ -71,6 +71,11 @@ export class MiddleSectionComponent implements OnInit, OnDestroy {
this.showConfirmButton = this.showRepeatTicket && this.filledRows.some( this.showConfirmButton = this.showRepeatTicket && this.filledRows.some(
row => row.label && row.numbers && row.numbers.length > 0 row => row.label && row.numbers && row.numbers.length > 0
); );
// Hide Print button if Confirm is hidden
if (!this.showConfirmButton) {
this.showPrintButton = false;
}
} }
showSalesTotal: boolean = false; showSalesTotal: boolean = false;