* aligns the attribute order of the ApplicableTradeTax class to the TradeTaxType in FACTUR-X_EXTENDED_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd to fix https://github.com/pretix/python-drafthorse/issues/18
* adds test case
* fix formatting
* sync readme with test_minimal
trade_tax.calculated_amount = Decimal("0.00")
trade_tax.basis_amount = Decimal("999.00")
trade_tax.type_code = "VAT"
- trade_tax.category_code = "E"
+ trade_tax.category_code = "AE"
+ trade_tax.exemption_reason_code = 'VATEX-EU-AE'
trade_tax.rate_applicable_percent = Decimal("0.00")
doc.trade.settlement.trade_tax.add(trade_tax)
profile=COMFORT,
_d="Grund der Steuerbefreiung (Freitext)",
)
- exemption_reason_code = StringField(
- NS_RAM,
- "ExemptionReasonCode",
- required=False,
- profile=EXTENDED,
- _d="Grund der Steuerbefreiung (Code)",
- )
tax_point_date = DateTimeField(
NS_RAM, "TaxPointDate", required=False, profile=COMFORT
)
profile=COMFORT,
_d="Steuerkategorie (Wert)",
)
+ exemption_reason_code = StringField(
+ NS_RAM,
+ "ExemptionReasonCode",
+ required=False,
+ profile=EXTENDED,
+ _d="Grund der Steuerbefreiung (Code)",
+ )
rate_applicable_percent = DecimalField(
NS_RAM, "RateApplicablePercent", required=True, profile=BASIC
)
trade_tax.calculated_amount = Decimal("0.00")
trade_tax.basis_amount = Decimal("999.00")
trade_tax.type_code = "VAT"
- trade_tax.category_code = "E"
+ trade_tax.category_code = "AE"
+ trade_tax.exemption_reason_code = "VATEX-EU-AE"
trade_tax.rate_applicable_percent = Decimal("0.00")
doc.trade.settlement.trade_tax.add(trade_tax)