Updated year field in pdf

This commit is contained in:
rajesh
2025-07-30 13:35:03 +05:30
parent 91e1324bb0
commit 2521eb9cc8
3 changed files with 13 additions and 6 deletions

View File

@@ -392,10 +392,12 @@ public class PdfDao {
if (Boolean.TRUE.equals(formulaEnabledMap.get(key)) && Boolean.TRUE.equals(GepafinConstant.NUMERIC.equalsIgnoreCase(fieldTypeMap.get(key)))) {
calculateValue(key, fieldValue, formulaTypeMap, columnSums);
}
if(Boolean.TRUE.equals(Utils.isNumeric(fieldValue))){
fieldValue=Utils.convertToItalianFormat(fieldValue);
String fieldLabel = stateFieldMap.getOrDefault(key, "");
if(Boolean.FALSE.equals(fieldLabel.equalsIgnoreCase("Anno"))) {
if (Boolean.TRUE.equals(Utils.isNumeric(fieldValue))) {
fieldValue = Utils.convertToItalianFormat(fieldValue);
}
}
PdfPCell dataCell = PdfUtils.htmlToPdfPCell(fieldValue != null ? fieldValue : "", textFont);
dataCell.setBackgroundColor(new BaseColor(239, 243, 248)); // Light blue for the cell
dataCell.setMinimumHeight(30f);