Skip to content

Commit

Permalink
fix: strings for translation in pos_past_order_summary.js
Browse files Browse the repository at this point in the history
(cherry picked from commit 23c846d)
  • Loading branch information
mahsem authored and mergify[bot] committed Dec 5, 2024
1 parent 8733eda commit ceec5fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions erpnext/selling/page/point_of_sale/pos_past_order_summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ erpnext.PointOfSale.PastOrderSummary = class {

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

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

0 comments on commit ceec5fd

Please sign in to comment.