Class Br16AtLeastOneLine

Namespace
EInvoice.Core.Validation.Rules.EN16931
Assembly
EInvoice.Core.dll

BR-16: An Invoice shall have at least one Invoice line.

public sealed class Br16AtLeastOneLine : IValidationRule
Inheritance
Br16AtLeastOneLine
Implements
Inherited Members

Properties

RuleId

Rule identifier (e.g. "BR-01", "BR-DE-1").

public string RuleId { get; }

Property Value

string

Methods

Apply(Invoice)

Apply this rule to the invoice and return any violations.

public IEnumerable<ValidationMessage> Apply(Invoice invoice)

Parameters

invoice Invoice

Returns

IEnumerable<ValidationMessage>