From 3635fdd52c12428fd267e60cf9853d0448841989 Mon Sep 17 00:00:00 2001 From: Roshan Gautam <106965552+Roshangautam2052@users.noreply.github.com> Date: Mon, 30 Sep 2024 10:36:37 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"DC-6672=20Update=20tax=20year=20in=20?= =?UTF-8?q?email=20subject=20line=20for=20SA-ATS=20email=20templa=E2=80=A6?= =?UTF-8?q?"=20(#1190)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 9bf1eddcf224a41d4748e3b1da09ed8f445cdfbb. Co-authored-by: Kapil Sanghvi <22366606+kjainsc@users.noreply.github.com> --- .../hmrc/hmrcemailrenderer/templates/ats/AtsTemplates.scala | 4 ++-- .../templates/AtsTemplates/AtsAnnualTaxReturnWelshSpec.scala | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/ats/AtsTemplates.scala b/app/uk/gov/hmrc/hmrcemailrenderer/templates/ats/AtsTemplates.scala index fc3caf201..45fd750d6 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/ats/AtsTemplates.scala +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/ats/AtsTemplates.scala @@ -24,8 +24,8 @@ import java.time.LocalDate object AtsTemplates { - val taxYearFrom = LocalDate.now().getYear - 1 - val taxYearTo = LocalDate.now().getYear + val taxYearFrom = LocalDate.now().getYear - 2 + val taxYearTo = LocalDate.now().getYear - 1 private val ats_year_for_subject = s"Your Annual Tax Summary for $taxYearFrom to $taxYearTo is now ready" private val ats_year_for_subject_welsh = s"Mae’ch Crynodeb Treth Blynyddol ar gyfer $taxYearFrom i $taxYearTo bellach yn barod" diff --git a/test/uk/gov/hmrc/hmrcemailrenderer/templates/AtsTemplates/AtsAnnualTaxReturnWelshSpec.scala b/test/uk/gov/hmrc/hmrcemailrenderer/templates/AtsTemplates/AtsAnnualTaxReturnWelshSpec.scala index cee58480d..78988309c 100644 --- a/test/uk/gov/hmrc/hmrcemailrenderer/templates/AtsTemplates/AtsAnnualTaxReturnWelshSpec.scala +++ b/test/uk/gov/hmrc/hmrcemailrenderer/templates/AtsTemplates/AtsAnnualTaxReturnWelshSpec.scala @@ -37,8 +37,8 @@ class AtsAnnualTaxReturnWelshSpec val params = commonParameters ++ TemplateParams.newMessageAlert_Names "render correct subject" in { - val taxYearFrom = LocalDate.now().getYear - 1 - val taxYearTo = LocalDate.now().getYear + val taxYearFrom = LocalDate.now().getYear - 2 + val taxYearTo = LocalDate.now().getYear - 1 template.subject( Map.empty ) shouldBe s"Mae’ch Crynodeb Treth Blynyddol ar gyfer $taxYearFrom i $taxYearTo bellach yn barod"