Invoice address: Fix broken autofill for Peppol ID (Z#23224796)

This commit is contained in:
Raphael Michel
2026-03-09 18:04:51 +01:00
parent 5099fa16e0
commit 56e021220a

View File

@@ -173,7 +173,7 @@ $(function () {
if (!dependents.transmission_peppol_participant_id.val()) {
const fill_peppol_id = function () {
const vatId = dependents.vat_id.val();
if (vatId && vatId.startsWith("BE") && dependents.transmission_type.val() === "peppol" && autofill_peppol_id) {
if (vatId && vatId.startsWith("BE") && dependents.transmission_type.val() === "peppol") {
dependents.transmission_peppol_participant_id.val("0201:" + vatId.substring(2))
}
}