Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Jan 22, 2025
1 parent 848c8c2 commit bba8f6c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pretix_zugferd/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,6 @@ class Modern1ZugferdXRechnungInvoiceRenderer(ZugferdMixin, Modern1Renderer):

def _zugferd_generate_document(self, invoice):
doc = super()._zugferd_generate_document(invoice)
if self.order.event.settings.invoice_address_custom_field:
if self.event.settings.invoice_address_custom_field:
doc.trade.agreement.buyer_reference = invoice.custom_field or "unknown"
return doc
1 change: 1 addition & 0 deletions tests/results/cancellation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Attendee: Peter</ram:Description>
</ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>
<ram:ApplicableHeaderTradeAgreement>
<ram:BuyerReference>PO-12345</ram:BuyerReference>
<ram:SellerTradeParty>
<ram:Name>Musterfirma</ram:Name>
<ram:PostalTradeAddress>
Expand Down
1 change: 1 addition & 0 deletions tests/results/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Attendee: Peter</ram:Description>
</ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>
<ram:ApplicableHeaderTradeAgreement>
<ram:BuyerReference>PO-12345</ram:BuyerReference>
<ram:SellerTradeParty>
<ram:Name>Musterfirma</ram:Name>
<ram:PostalTradeAddress>
Expand Down
1 change: 1 addition & 0 deletions tests/results/delivery_dates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Attendee: Peter</ram:Description>
</ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>
<ram:ApplicableHeaderTradeAgreement>
<ram:BuyerReference>PO-12345</ram:BuyerReference>
<ram:SellerTradeParty>
<ram:Name>Musterfirma</ram:Name>
<ram:PostalTradeAddress>
Expand Down
1 change: 1 addition & 0 deletions tests/results/paid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Attendee: Peter</ram:Description>
</ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>
<ram:ApplicableHeaderTradeAgreement>
<ram:BuyerReference>PO-12345</ram:BuyerReference>
<ram:SellerTradeParty>
<ram:Name>Musterfirma</ram:Name>
<ram:PostalTradeAddress>
Expand Down
1 change: 1 addition & 0 deletions tests/results/tax_code_exempt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Attendee: Peter</ram:Description>
</ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>
<ram:ApplicableHeaderTradeAgreement>
<ram:BuyerReference>PO-12345</ram:BuyerReference>
<ram:SellerTradeParty>
<ram:Name>Musterfirma</ram:Name>
<ram:PostalTradeAddress>
Expand Down
1 change: 1 addition & 0 deletions tests/results/tax_code_guess_AU.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Attendee: Peter</ram:Description>
</ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>
<ram:ApplicableHeaderTradeAgreement>
<ram:BuyerReference>PO-12345</ram:BuyerReference>
<ram:SellerTradeParty>
<ram:Name>Musterfirma</ram:Name>
<ram:PostalTradeAddress>
Expand Down
1 change: 1 addition & 0 deletions tests/results/tax_code_reverse_charge.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Attendee: Peter</ram:Description>
</ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>
<ram:ApplicableHeaderTradeAgreement>
<ram:BuyerReference>PO-12345</ram:BuyerReference>
<ram:SellerTradeParty>
<ram:Name>Musterfirma</ram:Name>
<ram:PostalTradeAddress>
Expand Down

0 comments on commit bba8f6c

Please sign in to comment.