From 95755c5453dc5f913c47bf2d1aa7d0238abd6a11 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 29 May 2023 11:36:12 +1000 Subject: [PATCH] js fixes (#4918) - Do not call formatDecimal on a string --- InvenTree/templates/js/translated/part.js | 2 +- InvenTree/templates/js/translated/purchase_order.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/templates/js/translated/part.js b/InvenTree/templates/js/translated/part.js index ca828f70bc..eb5341a537 100644 --- a/InvenTree/templates/js/translated/part.js +++ b/InvenTree/templates/js/translated/part.js @@ -1593,7 +1593,7 @@ function loadPartPurchaseOrderTable(table, part_id, options={}) { data += makeIconBadge( 'fa-info-circle icon-blue', - `{% trans "Pack Quantity" %}: ${formatDecimal(row.pack_quantity)} - {% trans "Total Quantity" %}: ${total}` + `{% trans "Pack Quantity" %}: ${row.pack_quantity} - {% trans "Total Quantity" %}: ${total}` ); } diff --git a/InvenTree/templates/js/translated/purchase_order.js b/InvenTree/templates/js/translated/purchase_order.js index 868ed657cd..4b075c0b37 100644 --- a/InvenTree/templates/js/translated/purchase_order.js +++ b/InvenTree/templates/js/translated/purchase_order.js @@ -1031,7 +1031,7 @@ function receivePurchaseOrderItems(order_id, line_items, options={}) { if (native_pack_quantity != 1) { pack_size_div = `
- {% trans "Pack Quantity" %}: ${formatDecimal(pack_quantity)}
+ {% trans "Pack Quantity" %}: ${pack_quantity}
{% trans "Received Quantity" %}: ${received} ${units}
`; }