fix : repeat works properly

This commit is contained in:
karthik 2025-08-09 00:41:37 +05:30
parent 03022ad84d
commit 9f59bb3d1b
4 changed files with 11 additions and 7 deletions

View File

@ -196,8 +196,12 @@ Date : ${currentDate}
.catch(error => {
console.error("❌ Repeat ticket print failed:", error);
});
this.erase(); // Clear selections after printing
// Hide Confirm and Print buttons before clearing selections
this.showConfirmButton = false;
this.showPrintButton = false;
this.erase(); // Clear selections after hiding buttons
}

View File

@ -6,7 +6,7 @@
<!-- Left Group: CALC, ERASE, BOX, FIELD -->
<div class="d-flex flex-wrap justify-content-center gap-2 first">
<button class="btn btn-dark one" (click)="openCalculator()">CALC</button>
<button class="btn btn-dark two" (click)="eraseAndReload()">ERASE</button>
<button class="btn btn-dark two" (click)="erase()">ERASE</button>
<button
class="btn btn-secondary three"
(click)="toggleBoxMode()"

View File

@ -1067,10 +1067,10 @@ try {
this.selectionService.clearSelections();
this.resetSelections();
}
eraseAndReload() {
this.erase();
window.location.reload();
}
// eraseAndReload() {
// this.erase();
// // window.location.reload();
// }
resetSelections() {

View File

@ -79,7 +79,7 @@
Password is required.
</small>
<small *ngIf="loginForm.get('password')?.errors?.['pattern']">
Must be exactly 6 digits.
Must be exactly 7 digits.
</small>
</div>