struct Zugpferd::ApplicableTradeTax

Overview

A VAT breakdown entry (BG-23) in the settlement, describing the tax applicable to one VAT category. Also used on SupplyChainTradeLineItem to indicate the VAT category for that line.

Defined in:

zugpferd/trade_tax.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(calculated_amount : MonetaryAmount, basis_amount : MonetaryAmount, category_code : CategoryCode, *, type_code : String = "VAT", rate_applicable_percent : MonetaryAmount | Nil = nil, exemption_reason : String | Nil = nil, exemption_reason_code : String | Nil = nil) #

[View source]

Instance Method Detail

def basis_amount : MonetaryAmount #

Taxable base amount for this VAT category (BT-116).


[View source]
def basis_amount=(basis_amount : MonetaryAmount) #

Taxable base amount for this VAT category (BT-116).


[View source]
def calculated_amount : MonetaryAmount #

The VAT amount calculated for this category (BT-117).


[View source]
def calculated_amount=(calculated_amount : MonetaryAmount) #

The VAT amount calculated for this category (BT-117).


[View source]
def category_code : CategoryCode #

VAT category code (BT-118). See CategoryCode for valid values.


[View source]
def category_code=(category_code : CategoryCode) #

VAT category code (BT-118). See CategoryCode for valid values.


[View source]
def exemption_reason : String | Nil #

Free-text reason when the category does not apply standard VAT (BT-120). Required for categories E, AE, K, G, O when #exemption_reason_code is absent.


[View source]
def exemption_reason=(exemption_reason : String | Nil) #

Free-text reason when the category does not apply standard VAT (BT-120). Required for categories E, AE, K, G, O when #exemption_reason_code is absent.


[View source]
def exemption_reason_code : String | Nil #

Coded exemption reason (BT-121). VATEX code list (e.g. "VATEX-EU-AE" = reverse charge, "VATEX-EU-IC" = intra-community supply). Required when #exemption_reason is absent.


[View source]
def exemption_reason_code=(exemption_reason_code : String | Nil) #

Coded exemption reason (BT-121). VATEX code list (e.g. "VATEX-EU-AE" = reverse charge, "VATEX-EU-IC" = intra-community supply). Required when #exemption_reason is absent.


[View source]
def rate_applicable_percent : MonetaryAmount | Nil #

VAT rate percentage (BT-119). Nil for categories E, AE, K, G, O where no rate applies.


[View source]
def rate_applicable_percent=(rate_applicable_percent : MonetaryAmount | Nil) #

VAT rate percentage (BT-119). Nil for categories E, AE, K, G, O where no rate applies.


[View source]
def type_code : String #

Tax type code — always "VAT" in EN 16931; no other value is valid in ZUGFeRD.


[View source]
def type_code=(type_code : String) #

Tax type code — always "VAT" in EN 16931; no other value is valid in ZUGFeRD.


[View source]