Bug: Billing postcode truncated to 342 and city to 34 on order #13314 (affects any SE B2B VAT order).
Root cause: Vies::resolveVatNumber() split the VIES address line "342 34 ALVESTA" on the first space; Swedish postcodes contain an internal space, so the postcode became 342 and 34 was mislabelled as the city. The mangled postcode made Ingrid reject the order (invalid postal code '342' for country 'SE'), putting it On Hold.
Fix: PR #589 (bugfix/vies-address-postcode-parsing -> master): parse the leading numeric run as the postcode and the remainder as the city; also fixed a last_name = first_name copy-paste bug in the VAT billing address; added a regression test (all 7 Vies tests green).
Follow-up (open): order #13314's stored billing address and the cached vat_numbers row for SE559193095201 still hold the bad values and need a manual data fix.
VIES VAT lookup truncates Swedish postcodes on billing address (Ingrid rejects order)
Assigned to
Tags
-
Jonathan Gustafsson moved item to board Shipped
1 month ago -
Jonathan Gustafsson moved item to board Awaiting Review
1 month ago -
Jonathan Gustafsson moved item to board Backlog
1 month ago -
Jonathan Gustafsson moved item to project Bugs
1 month ago -
Jonathan Gustafsson created the item
1 month ago