diff --git a/bsmd.database/PAS.cs b/bsmd.database/PAS.cs index bddd83ad..cd247fa4 100644 --- a/bsmd.database/PAS.cs +++ b/bsmd.database/PAS.cs @@ -128,7 +128,7 @@ namespace bsmd.database [ENI2Validation] public string PassengerIdentityDocumentIssuingState { get; set; } - + [Validation(ValidationCode.PAST_DATE)] [ENI2Validation] public DateTime? PassengerIdentityDocumentExpiryDate { get; set; } @@ -388,7 +388,7 @@ namespace bsmd.database violations.Add(RuleEngine.CreateViolation(ValidationCode.TIME_IMPLAUSIBLE, "Check date of birth", null, this.Title, this.Identifier, this.IsDeparture ? "PASD" : "PASA")); } - // NSW 7.2 rules + // NSW 7.2 rules if ((this.NotificationSchengen ?? false) && (!this.HasSchengenDetails)) { @@ -402,7 +402,7 @@ namespace bsmd.database if ((this.NotificationPAX ?? false) && (!this.HasPAXDetails)) { - errors.Add(RuleEngine.CreateError(ValidationCode.V203, "PAX flag set but no data", null, this.Title, null, this.IsDeparture ? "PASD" : "PASA")); + errors.Add(RuleEngine.CreateError(ValidationCode.V203, "PAX flag set but no data - emergency details", null, this.Title, null, this.IsDeparture ? "PASD" : "PASA")); } if (!(this.NotificationPAX ?? false) && (this.HasPAXDetails))