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
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
protected override Type EqualityContract { get; }
Methods
Check(CrossIndustryInvoice?, IBusinessRuleDetailsLogger?)
Determines whether the invoice satisfies the conditions defined by the rule.
public override bool Check(CrossIndustryInvoice? cii, IBusinessRuleDetailsLogger? logger = null)
Returns
System.Boolean
: true
if the rule is satisfied by the invoice; otherwise false
.
Parameters
Type | Name | Description |
---|---|---|
FacturXDotNet.Models.CII.CrossIndustryInvoice | cii | The Cross-Industry Invoice to validate. |
FacturXDotNet.Validation.BusinessRules.IBusinessRuleDetailsLogger | logger |
ToString()
public override string ToString()
Returns
System.String
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Text.StringBuilder | builder |
GetHashCode()
public override int GetHashCode()
Returns
System.Int32
Equals(object?)
public override bool Equals(object? obj)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Object | obj |
Equals(CrossIndustryInvoiceBusinessRule?)
public override sealed bool Equals(CrossIndustryInvoiceBusinessRule? other)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
FacturXDotNet.Validation.BusinessRules.CII.CrossIndustryInvoiceBusinessRule | other |
Equals(BrS01?)
public virtual bool Equals(BrS01? other)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
FacturXDotNet.Validation.BusinessRules.CII.BrS.BrS01 | other |
Implements
System.IEquatable<FacturXDotNet.Validation.BusinessRules.BusinessRule>
System.IEquatable<FacturXDotNet.Validation.BusinessRules.CII.CrossIndustryInvoiceBusinessRule>
System.IEquatable<FacturXDotNet.Validation.BusinessRules.CII.BrS.BrS01>