Updated year field in pdf
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user