fix: pass printBillActionTriggered flag to basic receipt print action

This commit is contained in:
Suherdy Yacob 2026-05-26 11:37:18 +07:00
parent 1fe30270ff
commit 6e3df1cfd6

View File

@ -9,7 +9,7 @@
<button t-if="(this.pos.cashier.pos_role == 'waiter' or this.pos.cashier.pos_role == 'cashier') and this.pos.config.basic_receipt" <button t-if="(this.pos.cashier.pos_role == 'waiter' or this.pos.cashier.pos_role == 'cashier') and this.pos.config.basic_receipt"
class="button btn btn-secondary btn-lg py-3 d-flex align-items-center justify-content-center flex-fill" class="button btn btn-secondary btn-lg py-3 d-flex align-items-center justify-content-center flex-fill"
t-att-class="{'col-3': showFastPaymentMethods}" t-att-class="{'col-3': showFastPaymentMethods}"
t-on-click="() => this.pos.printReceipt({ order: this.currentOrder, basic: true })"> t-on-click="() => this.pos.printReceipt({ order: this.currentOrder, basic: true, printBillActionTriggered: true })">
<i class="fa fa-print me-2"/> Basic Receipt <i class="fa fa-print me-2"/> Basic Receipt
</button> </button>
</xpath> </xpath>