feat: add licence import endpoint
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 9m50s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 9m50s
fix: pdf_gen
This commit is contained in:
@@ -32,7 +32,7 @@ public class Main {
|
||||
pdfData.saison = Integer.parseInt(args[7]);
|
||||
pdfData.licence = Integer.parseInt(args[8]);
|
||||
pdfData.club = args[9];
|
||||
pdfData.club_no = Integer.parseInt(args[10]);
|
||||
pdfData.club_no = args[10].equals("null") ? -1 : Integer.parseInt(args[10]);
|
||||
pdfData.birth_date = args[11];
|
||||
pdfData.photo_file = new File(args[12]);
|
||||
|
||||
@@ -165,7 +165,7 @@ public class Main {
|
||||
pList.add(new Paragraph("CLUB AFFILIÉ SAISON " + pdfData.saison + "-" + (pdfData.saison + 1) + "\n ",
|
||||
new Font(customFontBold, 24, Font.NORMAL)));
|
||||
pList.add(new Paragraph(pdfData.name, new Font(customFontBold, 20, Font.NORMAL, new Color(0, 112, 192))));
|
||||
pList.add(new Paragraph(String.format("- association n°%03d -\n ", pdfData.club_no),
|
||||
pList.add(new Paragraph(String.format("- association n°%05d -\n ", pdfData.club_no),
|
||||
new Font(customFont, 18, Font.TIMES_ROMAN)));
|
||||
|
||||
PdfPCell bodyCell = new PdfPCell();
|
||||
@@ -375,7 +375,7 @@ public class Main {
|
||||
Paragraph memberClub = new Paragraph("CLUB : " + pdfData.club.toUpperCase(), bodyFont);
|
||||
document.add(memberClub);
|
||||
|
||||
Paragraph memberClubNumber = new Paragraph(String.format("N° club : %03d ", pdfData.club_no), bodyFont);
|
||||
Paragraph memberClubNumber = new Paragraph(String.format("N° club : %05d ", pdfData.club_no), bodyFont);
|
||||
document.add(memberClubNumber);
|
||||
|
||||
// Adding spacing
|
||||
|
||||
Reference in New Issue
Block a user