- Do not call formatDecimal on a string
This commit is contained in:
Oliver 2023-05-29 11:36:12 +10:00 committed by GitHub
parent b842d5ea67
commit 95755c5453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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}`
);
}

View File

@ -1031,7 +1031,7 @@ function receivePurchaseOrderItems(order_id, line_items, options={}) {
if (native_pack_quantity != 1) {
pack_size_div = `
<div class='alert alert-small alert-block alert-info'>
{% trans "Pack Quantity" %}: ${formatDecimal(pack_quantity)}<br>
{% trans "Pack Quantity" %}: ${pack_quantity}<br>
{% trans "Received Quantity" %}: <span class='pack_received_quantity' id='items_received_quantity_${pk}'>${received}</span> ${units}
</div>`;
}