@vergelijkdirect/comparison-forms 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22536,7 +22536,7 @@ const VA = Sg.exports, qA = A({
|
|
|
22536
22536
|
Rr(i, (w) => I(this, null, function* () {
|
|
22537
22537
|
w && w.kvkNummer && (yield je.dataService.getProfileInfo(w.kvkNummer).then((C) => {
|
|
22538
22538
|
h();
|
|
22539
|
-
let E = C._embedded.hoofdvestiging.adressen.find((F) => F.type === "bezoekadres"), j = E.huisletter || "";
|
|
22539
|
+
let E = C._embedded.hoofdvestiging.adressen.find((F) => F.type === "bezoekadres" || F.type === "correspondentieadres"), j = E.huisletter || "";
|
|
22540
22540
|
j += E.huisnummerToevoeging || "", a.kvk_number = C.kvkNummer, a.company_name = C.naam, a.legal_entity = C._embedded.eigenaar.rechtsvorm, a.rsin = C._embedded.eigenaar.rsin || null, a.branch_number = C._embedded.hoofdvestiging.vestigingsnummer, a.postcode = E.postcode || null, a.city = E.plaats || null, a.street = E.straatnaam || null, a.house_number = E.huisnummer || null, a.house_number_addition = j || null, a.full_address = E.volledigAdres || null, a.sbi_activities = C.sbiActiviteiten.map((F) => ({
|
|
22541
22541
|
code: F.sbiCode,
|
|
22542
22542
|
description: F.sbiOmschrijving,
|
|
@@ -22548,7 +22548,7 @@ const VA = Sg.exports, qA = A({
|
|
|
22548
22548
|
u.value = !0, w.aantal = 30, je.dataService.searchBusinessInfo({ companyName: w.handelsnaam, kvkNumber: w.kvkNummer }, 1, w.aantal).then((C) => {
|
|
22549
22549
|
u.value = !1;
|
|
22550
22550
|
let E = C.resultaten;
|
|
22551
|
-
E.length > 0 ? o.value = E.map((j) => (j.name = `${j.handelsnaam}`, j)) : o.value = [];
|
|
22551
|
+
E.length > 0 ? o.value = E.filter((j) => j.type !== "rechtspersoon").map((j) => (j.name = `${j.handelsnaam}`, j)) : o.value = [];
|
|
22552
22552
|
}).catch((C) => {
|
|
22553
22553
|
o.value = [], u.value = !1;
|
|
22554
22554
|
});
|