fix: Decimal point issue for e-invoice (#19068)
diff --git a/erpnext/regional/italy/e-invoice.xml b/erpnext/regional/italy/e-invoice.xml
index 9978dc0..0a5bb29 100644
--- a/erpnext/regional/italy/e-invoice.xml
+++ b/erpnext/regional/italy/e-invoice.xml
@@ -1,5 +1,11 @@
{%- macro format_float(value, precision=2) -%}
-{{ value|round(frappe.utils.cint(precision)) }}
+{%- if frappe.utils.cint(precision) == 3 %}
+{{ "%.3f" % value|abs }}
+{%- elif frappe.utils.cint(precision) == 4 -%}
+{{ "%.4f" % value|abs }}
+{%- else -%}
+{{ "%.2f" % value|abs }}
+{%- endif %}
{%- endmacro -%}
{%- macro render_address(address) %}