From 73bc57f53e80a8c2c20ec2f891109709331eb591 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 21:11:49 +0200 Subject: [PATCH] Revert "fix: translate_pos_buttons" (backport #47773) (#47774) Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com> 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 0ad25b0a473..cf775176c07 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,25 +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"], }, ]; }