Skip to content

Class BrS01

BR-S-01: An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is “Standard rated” shall contain in the VAT breakdown (BG-23) at least one VAT category code (BT-118) equal with "Standard rated".

Assembly: FacturXDotNet.dll
csharp
public record BrS01 : CrossIndustryInvoiceBusinessRule, IEquatable<BusinessRule>, IEquatable<CrossIndustryInvoiceBusinessRule>, IEquatable<BrS01>

Inheritance: System.Object -> FacturXDotNet.Validation.BusinessRules.BusinessRule -> FacturXDotNet.Validation.BusinessRules.CII.CrossIndustryInvoiceBusinessRule

Implements:
System.IEquatable<FacturXDotNet.Validation.BusinessRules.BusinessRule>, System.IEquatable<FacturXDotNet.Validation.BusinessRules.CII.CrossIndustryInvoiceBusinessRule>, System.IEquatable<FacturXDotNet.Validation.BusinessRules.CII.BrS.BrS01>

Properties

EqualityContract

csharp
protected override Type EqualityContract { get; }

Methods

Check(CrossIndustryInvoice?, IBusinessRuleDetailsLogger?)

Determines whether the invoice satisfies the conditions defined by the rule.

csharp
public override bool Check(CrossIndustryInvoice? cii, IBusinessRuleDetailsLogger? logger = null)
Returns

System.Boolean: true if the rule is satisfied by the invoice; otherwise false.

Parameters
TypeNameDescription
FacturXDotNet.Models.CII.CrossIndustryInvoiceciiThe Cross-Industry Invoice to validate.
FacturXDotNet.Validation.BusinessRules.IBusinessRuleDetailsLoggerlogger

ToString()

csharp
public override string ToString()
Returns

System.String

PrintMembers(StringBuilder)

csharp
protected override bool PrintMembers(StringBuilder builder)
Returns

System.Boolean

Parameters
TypeName
System.Text.StringBuilderbuilder

GetHashCode()

csharp
public override int GetHashCode()
Returns

System.Int32

Equals(object?)

csharp
public override bool Equals(object? obj)
Returns

System.Boolean

Parameters
TypeName
System.Objectobj

Equals(CrossIndustryInvoiceBusinessRule?)

csharp
public override sealed bool Equals(CrossIndustryInvoiceBusinessRule? other)
Returns

System.Boolean

Parameters
TypeName
FacturXDotNet.Validation.BusinessRules.CII.CrossIndustryInvoiceBusinessRuleother

Equals(BrS01?)

csharp
public virtual bool Equals(BrS01? other)
Returns

System.Boolean

Parameters
TypeName
FacturXDotNet.Validation.BusinessRules.CII.BrS.BrS01other

Implements

  • System.IEquatable<FacturXDotNet.Validation.BusinessRules.BusinessRule>
  • System.IEquatable<FacturXDotNet.Validation.BusinessRules.CII.CrossIndustryInvoiceBusinessRule>
  • System.IEquatable<FacturXDotNet.Validation.BusinessRules.CII.BrS.BrS01>

The tools are open source and released under the MIT License, feel free to use, modify, and share.