From 3c0efcf7f1bb76344ffb7d529a9b92469d9ee7a3 Mon Sep 17 00:00:00 2001 From: Raffael Meyer <14891507+barredterra@users.noreply.github.com> Date: Tue, 27 May 2025 21:08:49 +0200 Subject: [PATCH] Revert "fix: translate_pos_buttons" (#47773) --- .../page/point_of_sale/pos_past_order_summary.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 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 84b318dca8d..c26b53e5144 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 @@ -356,25 +356,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"], }, ]; }