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.disabled) {
if (row.numeric_values) { if (row.numeric_values) {
fieldtype = "Float"; fieldtype = "Float";
desc = desc = __("Min Value: {0}, Max Value: {1}, in Increments of: {2}", [
"Min Value: " + frappe.format(row.from_range, { fieldtype: "Float" }, { always_show_decimals: true }),
row.from_range + frappe.format(row.to_range, { fieldtype: "Float" }, { always_show_decimals: true }),
" , Max Value: " + frappe.format(row.increment, { fieldtype: "Float" }, { always_show_decimals: true }),
row.to_range + ]);
", in Increments of: " +
row.increment;
} else { } else {
fieldtype = "Data"; fieldtype = "Data";
desc = ""; desc = "";