Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ITSASU-3596 - Build + Integrate new start date limit question and flow #1492

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

AlexRimmerHMRC
Copy link
Contributor

No description provided.

@platops-pr-bot
Copy link

conf/messages Outdated
individual.foreign-property.start-date.hint = For example, 27 9 {0}.

# Foreign Property Start Date Errors
error.individual.foreign-property.day-month-year.empty = Enter the date your foreign property business started trading
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update the following English error messages please:

  • all empty
  • max date
  • min date
  • year must be 4 numbers

The welsh looks OK.

@@ -14,9 +14,10 @@
* limitations under the License.
*@

@import forms.individual.business.OverseasPropertyStartDateForm._
@import forms.individual.business.PropertyStartDateForm._
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imported the UK Property start date form here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

}
}
}
"return a form error" when {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add tests for min and max date

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added tests

@@ -45,10 +45,10 @@ class OverseasPropertyStartDateViewSpec extends ViewSpec {
val backUrl: String = testBackUrl
val action: Call = testCall
val taxYearEnd: Int = 2020
val testError: FormError = FormError("startDate", "error.overseas.property.day-month-year.empty")
Copy link
Contributor

@ILee15 ILee15 Feb 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I take it there was 1 set of messages for both ind/agent? Will be good to let Yonis know the message keys are changing :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, not quite, this was updated incorrectly, I mass updated it and it caught this which was wrong to begin with, there are agent specific messages for this, I'll convert this to the agent message

@ILee15 ILee15 merged commit 0258fad into main Feb 7, 2025
1 check passed
@ILee15 ILee15 deleted the ITSASU-3596 branch February 7, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants