From 9d7e724b11f0c7e3e3794855b7cc76e048c9008b Mon Sep 17 00:00:00 2001 From: arybakov Date: Thu, 16 Nov 2023 09:51:15 -0700 Subject: [PATCH] GRAD2-2403 Fix packing slip jasper file to accommodate address line 2 --- .../bundle/decorator/AchievementReportDecorator.java | 2 +- .../bundle/decorator/CertificateReportDecorator.java | 2 +- .../bundle/decorator/TranscriptReportDecorator.java | 2 +- api/src/main/resources/reports/PackingSlip.jrxml | 9 ++++----- .../resources/json/packingSlipReportRequest.json | 12 ++++++------ 5 files changed, 13 insertions(+), 14 deletions(-) diff --git a/api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/bundle/decorator/AchievementReportDecorator.java b/api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/bundle/decorator/AchievementReportDecorator.java index 495c3d8e..41ef96a1 100644 --- a/api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/bundle/decorator/AchievementReportDecorator.java +++ b/api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/bundle/decorator/AchievementReportDecorator.java @@ -70,6 +70,6 @@ public String getFilenamePrefix() { @Override protected int getRotateDegree() { - return 90; + return 0; } } diff --git a/api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/bundle/decorator/CertificateReportDecorator.java b/api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/bundle/decorator/CertificateReportDecorator.java index e8d2ec77..a7f79945 100644 --- a/api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/bundle/decorator/CertificateReportDecorator.java +++ b/api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/bundle/decorator/CertificateReportDecorator.java @@ -82,6 +82,6 @@ public String getFilenamePrefix() { @Override protected int getRotateDegree() { - return 90; + return 0; } } diff --git a/api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/bundle/decorator/TranscriptReportDecorator.java b/api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/bundle/decorator/TranscriptReportDecorator.java index ba96439f..34872cb7 100644 --- a/api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/bundle/decorator/TranscriptReportDecorator.java +++ b/api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/bundle/decorator/TranscriptReportDecorator.java @@ -81,7 +81,7 @@ public String getFilenamePrefix() { @Override protected int getRotateDegree() { - return 90; + return 0; } diff --git a/api/src/main/resources/reports/PackingSlip.jrxml b/api/src/main/resources/reports/PackingSlip.jrxml index 385b0023..5a172ee1 100644 --- a/api/src/main/resources/reports/PackingSlip.jrxml +++ b/api/src/main/resources/reports/PackingSlip.jrxml @@ -1,6 +1,5 @@ - - + @@ -70,14 +69,14 @@ - + - + @@ -130,7 +129,7 @@ - + diff --git a/api/src/test/resources/json/packingSlipReportRequest.json b/api/src/test/resources/json/packingSlipReportRequest.json index 71957e0a..c29934c9 100644 --- a/api/src/test/resources/json/packingSlipReportRequest.json +++ b/api/src/test/resources/json/packingSlipReportRequest.json @@ -30,12 +30,12 @@ "distno": "036", "schlno": "03699064", "address": { - "streetLine1": "300-10183 152A ST", - "streetLine2": "", - "city": "SURREY", - "region": "BC", - "country": "", - "code": "VER4H6" + "streetLine1": "4TH FLOOR 620 SUPERIOR", + "streetLine2": "PO BOX 9886 STN PROV GOVT", + "city": "VICTORIA", + "region": "BRITISH COLUMBIA", + "country": "CANADA", + "code": "V8W9T6" } } }