Merge pull request #395 from Kitzanos/pdf-amount-issue-prod

Cherry-pick (PDF Amount Issue)
This commit is contained in:
Antonio Manca
2026-04-14 10:22:07 +02:00
committed by GitHub

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