From e319ecdb7232daf8476e45d0c080d85172291749 Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Sun, 7 Jun 2026 10:20:55 +0700 Subject: [PATCH] feat: add optional last_cashier_name prop to ClosePosPopup component --- static/src/app/closing_receipt_patch.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/src/app/closing_receipt_patch.js b/static/src/app/closing_receipt_patch.js index 80a151f..f13409f 100644 --- a/static/src/app/closing_receipt_patch.js +++ b/static/src/app/closing_receipt_patch.js @@ -11,6 +11,9 @@ import { _t } from "@web/core/l10n/translation"; import { PrinterService } from "@point_of_sale/app/services/printer_service"; import { waitImages } from "@point_of_sale/utils"; +ClosePosPopup.props.push("last_cashier_name?"); + + // Patch PrinterService.printWeb to return a promise that resolves only after print dialog is closed patch(PrinterService.prototype, { async printWeb(el) {