Skip to content

Commit ceec5fd

Browse files
mahsemmergify[bot]
authored andcommitted
fix: strings for translation in pos_past_order_summary.js
(cherry picked from commit 23c846d)
1 parent 8733eda commit ceec5fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

erpnext/selling/page/point_of_sale/pos_past_order_summary.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ erpnext.PointOfSale.PastOrderSummary = class {
4646

4747
init_email_print_dialog() {
4848
const email_dialog = new frappe.ui.Dialog({
49-
title: "Email Receipt",
49+
title: __("Email Receipt"),
5050
fields: [
5151
{ fieldname: "email_id", fieldtype: "Data", options: "Email", label: "Email ID", reqd: 1 },
5252
{ fieldname: "content", fieldtype: "Small Text", label: "Message (if any)" },
@@ -59,7 +59,7 @@ erpnext.PointOfSale.PastOrderSummary = class {
5959
this.email_dialog = email_dialog;
6060

6161
const print_dialog = new frappe.ui.Dialog({
62-
title: "Print Receipt",
62+
title: __("Print Receipt"),
6363
fields: [{ fieldname: "print", fieldtype: "Data", label: "Print Preview" }],
6464
primary_action: () => {
6565
this.print_receipt();
@@ -112,7 +112,7 @@ erpnext.PointOfSale.PastOrderSummary = class {
112112
get_discount_html(doc) {
113113
if (doc.discount_amount) {
114114
return `<div class="summary-row-wrapper">
115-
<div>Discount (${doc.additional_discount_percentage} %)</div>
115+
<div>${__("Discount")} (${doc.additional_discount_percentage} %)</div>
116116
<div>${format_currency(doc.discount_amount, doc.currency)}</div>
117117
</div>`;
118118
} else {

0 commit comments

Comments
 (0)