forked from CGM_Public/pretix_original
Update src/pretix/base/invoicing/peppol.py
Co-authored-by: pajowu <engelhardt@pretix.eu>
This commit is contained in:
@@ -208,7 +208,7 @@ class PeppolTransmissionType(TransmissionType):
|
||||
# Special case Belgium: If a Belgian business ID is used as Peppol ID, it should match the VAT ID
|
||||
if address_data.get("transmission_peppol_participant_id").startswith("0208:") and address_data.get("vat_id"):
|
||||
if address_data["vat_id"].removeprefix("BE") != address_data["transmission_peppol_participant_id"].removeprefix("0208:"):
|
||||
raise ValidationError(_("The Peppol participant ID does not match your VAT ID."))
|
||||
raise ValidationError({"transmission_peppol_participant_id": _("The Peppol participant ID does not match your VAT ID.")})
|
||||
|
||||
def pdf_watermark(self) -> str:
|
||||
return pgettext("peppol_invoice", "Visual copy")
|
||||
|
||||
Reference in New Issue
Block a user