Fixed PDF calculation issue

This commit is contained in:
rajesh
2026-04-14 13:12:25 +05:30
parent eef2d621f8
commit 5a24549de3

View File

@@ -481,7 +481,7 @@ public class PdfDao {
try {
if (Boolean.FALSE.equals(StringUtils.isEmpty(fieldValue))) {
// Use Locale.ITALY to parse the number with the Italian format (comma as decimal separator)
NumberFormat format = NumberFormat.getInstance(Locale.ENGLISH);
NumberFormat format = NumberFormat.getInstance(Locale.ITALY);
Number number = format.parse(fieldValue); // Parse the fieldValue as a number
double numericValue = number.doubleValue(); // Convert the parsed number to double