From 71d8dfb401a8a3f533e5e06eedb27cc9a1ae8d27 Mon Sep 17 00:00:00 2001
From: mahsem <137205921+mahsem@users.noreply.github.com>
Date: Wed, 4 Dec 2024 10:12:34 +0100
Subject: [PATCH 1/2] fix: add strings for translation in pos_item_cart.js
(cherry picked from commit 4b72b60f1a75657c444f210fcb3dd7a055e4d9b8)
---
erpnext/selling/page/point_of_sale/pos_item_cart.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/erpnext/selling/page/point_of_sale/pos_item_cart.js b/erpnext/selling/page/point_of_sale/pos_item_cart.js
index b808b4f8828d..4ed678e2db06 100644
--- a/erpnext/selling/page/point_of_sale/pos_item_cart.js
+++ b/erpnext/selling/page/point_of_sale/pos_item_cart.js
@@ -966,13 +966,13 @@ erpnext.PointOfSale.ItemCart = class {
if (!res.length) {
transaction_container.html(
- `
No recent transactions found
`
+ `${__("No recent transactions found")}
`
);
return;
}
const elapsed_time = moment(res[0].posting_date + " " + res[0].posting_time).fromNow();
- this.$customer_section.find(".customer-desc").html(`Last transacted ${elapsed_time}`);
+ this.$customer_section.find(".customer-desc").html(`${__("Last transacted")} ${__(elapsed_time)}`);
res.forEach((invoice) => {
const posting_datetime = moment(invoice.posting_date + " " + invoice.posting_time).format(
@@ -997,7 +997,7 @@ erpnext.PointOfSale.ItemCart = class {
- ${invoice.status}
+ ${__(invoice.status)}
From d540c99934c5594f16a4e811ea88b0d3a6eca259 Mon Sep 17 00:00:00 2001
From: ruthra kumar
Date: Thu, 5 Dec 2024 10:10:34 +0530
Subject: [PATCH 2/2] chore: linter fix
(cherry picked from commit 31efaf6dbf8f0139a4dd291ae8abb3e27bdc91ac)
---
erpnext/selling/page/point_of_sale/pos_item_cart.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/erpnext/selling/page/point_of_sale/pos_item_cart.js b/erpnext/selling/page/point_of_sale/pos_item_cart.js
index 4ed678e2db06..6342b237f6e0 100644
--- a/erpnext/selling/page/point_of_sale/pos_item_cart.js
+++ b/erpnext/selling/page/point_of_sale/pos_item_cart.js
@@ -972,7 +972,9 @@ erpnext.PointOfSale.ItemCart = class {
}
const elapsed_time = moment(res[0].posting_date + " " + res[0].posting_time).fromNow();
- this.$customer_section.find(".customer-desc").html(`${__("Last transacted")} ${__(elapsed_time)}`);
+ this.$customer_section
+ .find(".customer-desc")
+ .html(`${__("Last transacted")} ${__(elapsed_time)}`);
res.forEach((invoice) => {
const posting_datetime = moment(invoice.posting_date + " " + invoice.posting_time).format(