Merge pull request #148 in TEA/mina-sidor-fa-web from bugfix/TV-696-Telefonnummer-i-deltagarkortet-visar-undefined- to next

Squashed commit of the following:

commit be0b5ebe0fdb568e4264354010f147cd18deceee
Author: Daniel Appelgren <daniel.appelgren@arbetsformedlingen.se>
Date:   Tue Sep 28 11:29:03 2021 +0200

    id ska vara genomforandeReferens

commit f5d294d827b5254e444e77ec389a9de2ce7ec25c
Author: Daniel Appelgren <daniel.appelgren@arbetsformedlingen.se>
Date:   Tue Sep 28 09:39:09 2021 +0200

    telefonnummer visas inte ifall något av landskod eller telefonnummer saknas
This commit is contained in:
Daniel Appelgren
2021-09-28 11:54:49 +02:00
parent 000e1a7728
commit de8931a87d
4 changed files with 12 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ function generateAvrop(amount = 10, deltagare, handledare) {
fornamn: currentDeltagare.contact.fornamn,
efternamn: currentDeltagare.contact.efternamn,
deltagare: `${currentDeltagare.contact.fornamn} ${currentDeltagare.contact.efternamn}`,
genomforandeReferens: faker.datatype.number({ min: 100000000, max: 999999999 }),
genomforandeReferens: currentDeltagare.genomforandeReferens,
orgId: faker.datatype.uuid(),
leverantorId: faker.datatype.number({ min: 1000, max: 99999 }),
organisationsnummer: organization.organizationNumber,

View File

@@ -44,9 +44,12 @@ function generateDeltagare(amount = 10) {
const educationLevel = EDUCATION_LEVELS[Math.floor(Math.random() * EDUCATION_LEVELS.length)];
const sunKod = SUN_KODER[Math.floor(Math.random() * SUN_KODER.length)];
const genomforandeReferens = faker.datatype.number({ min: 100000000, max: 999999999 });
const deltagare = {
id,
id: genomforandeReferens,
sokandeId: id,
genomforandeReferens,
contact: {
fornamn,
efternamn,

View File

@@ -147,7 +147,7 @@ router.render = (req, res) => {
startdatumAvrop,
slutdatumAvrop,
hasAvbrott,
genomforandeReferens,
genomforandeReferens: genomforandeReferens.toString(),
})
);
}