fix(stock): format numeric values in variant dialog helper text

This commit is contained in:
Mihir Kandoi
2025-11-13 14:03:38 +05:30
parent 926c670c91
commit 2ea9ffea3c

View File

@@ -821,13 +821,11 @@ $.extend(erpnext.item, {
if (!row.disabled) {
if (row.numeric_values) {
fieldtype = "Float";
desc =
"Min Value: " +
row.from_range +
" , Max Value: " +
row.to_range +
", in Increments of: " +
row.increment;
desc = __("Min Value: {0}, Max Value: {1}, in Increments of: {2}", [
frappe.format(row.from_range, { fieldtype: "Float" }, { always_show_decimals: true }),
frappe.format(row.to_range, { fieldtype: "Float" }, { always_show_decimals: true }),
frappe.format(row.increment, { fieldtype: "Float" }, { always_show_decimals: true }),
]);
} else {
fieldtype = "Data";
desc = "";