Fixed HAZ validation logic when there are positions and checkbox is set
This commit is contained in:
parent
ed666aff0c
commit
06509767e5
@ -510,7 +510,7 @@ namespace bsmd.database
|
||||
public override void Validate(List<MessageError> errors, List<MessageViolation> violations)
|
||||
{
|
||||
|
||||
if (!this.NoDPGOnBoardOnArrival ?? true)
|
||||
if (!(this.NoDPGOnBoardOnArrival ?? true) && !this.HasPositions)
|
||||
{
|
||||
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "No DPG on board set", null, this.Title, null, this.Tablename));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user