Added violation for missing no DPG flag set
This commit is contained in:
parent
2ebb3f1838
commit
82a98ab9e6
@ -510,9 +510,9 @@ namespace bsmd.database
|
|||||||
public override void Validate(List<MessageError> errors, List<MessageViolation> violations)
|
public override void Validate(List<MessageError> errors, List<MessageViolation> violations)
|
||||||
{
|
{
|
||||||
|
|
||||||
if ((this.NoDPGOnBoardOnArrival ?? false) && this.MessageHeader.InternalStatus == Message.BSMDStatus.TOSEND)
|
if (!this.NoDPGOnBoardOnArrival ?? true)
|
||||||
{
|
{
|
||||||
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "No DPG on board set!", null, this.Title, null, this.Tablename));
|
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "No DPG on board set", null, this.Title, null, this.Tablename));
|
||||||
}
|
}
|
||||||
|
|
||||||
if((NoDPGOnBoardOnArrival ?? false) && this.HasPositions)
|
if((NoDPGOnBoardOnArrival ?? false) && this.HasPositions)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user