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) {