Skip to content

Commit

Permalink
fix: add strings for translation in pos_item_cart.js
Browse files Browse the repository at this point in the history
(cherry picked from commit 4b72b60)
  • Loading branch information
mahsem authored and mergify[bot] committed Dec 5, 2024
1 parent 3d6d560 commit 71d8dfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions erpnext/selling/page/point_of_sale/pos_item_cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -966,13 +966,13 @@ erpnext.PointOfSale.ItemCart = class {

if (!res.length) {
transaction_container.html(
`<div class="no-transactions-placeholder">No recent transactions found</div>`
`<div class="no-transactions-placeholder">${__("No recent transactions found")}</div>`
);
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(
Expand All @@ -997,7 +997,7 @@ erpnext.PointOfSale.ItemCart = class {
</div>
<div class="invoice-status">
<span class="indicator-pill whitespace-nowrap ${indicator_color[invoice.status]}">
<span>${invoice.status}</span>
<span>${__(invoice.status)}</span>
</span>
</div>
</div>
Expand Down

0 comments on commit 71d8dfb

Please sign in to comment.