From 01b0d1057e6fed3b414d7a55e85279869e35ea33 Mon Sep 17 00:00:00 2001 From: mahsem <137205921+mahsem@users.noreply.github.com> Date: Wed, 21 May 2025 12:46:36 +0200 Subject: [PATCH] fix: translate_pos_buttons (cherry picked from commit ce45d1664db996bcdb220fe0ffe09076defa3aeb) --- .../selling/page/point_of_sale/pos_past_order_summary.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/erpnext/selling/page/point_of_sale/pos_past_order_summary.js b/erpnext/selling/page/point_of_sale/pos_past_order_summary.js index cf775176c07..ed1abc97b51 100644 --- a/erpnext/selling/page/point_of_sale/pos_past_order_summary.js +++ b/erpnext/selling/page/point_of_sale/pos_past_order_summary.js @@ -321,17 +321,17 @@ erpnext.PointOfSale.PastOrderSummary = class { get_condition_btn_map(after_submission) { if (after_submission) - return [{ condition: true, visible_btns: ["Print Receipt", "Email Receipt", "New Order"] }]; + return [{ condition: true, visible_btns: [__("Print Receipt"), __("Email Receipt"), __("New Order")] }]; return [ - { condition: this.doc.docstatus === 0, visible_btns: ["Edit Order", "Delete Order"] }, + { condition: this.doc.docstatus === 0, visible_btns: [__("Edit Order"), __("Delete Order")] }, { condition: !this.doc.is_return && this.doc.docstatus === 1, - visible_btns: ["Print Receipt", "Email Receipt", "Return"], + visible_btns: [__("Print Receipt"), __("Email Receipt"), __("Return")], }, { condition: this.doc.is_return && this.doc.docstatus === 1, - visible_btns: ["Print Receipt", "Email Receipt"], + visible_btns: [__("Print Receipt"), __("Email Receipt")], }, ]; }