Merge branch 'next' into develop
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -13,7 +13,21 @@ const HANDELSER = [
|
||||
'Byte av leverantör bifall',
|
||||
];
|
||||
|
||||
const TIDPUNKT_DESCRIPTION = ['Handläggning startad', 'Inrapporteringsdatum slutredovisning'];
|
||||
const TIDPUNKT_DESCRIPTION = [
|
||||
'Inrapporteringsdatum_GP',
|
||||
'Godkannandedatum_GP',
|
||||
'Avvisatdatum_GP',
|
||||
'Inrapporteringsdatum_PR',
|
||||
'Godkannandedatum_PR',
|
||||
'Avvisatdatum_PR',
|
||||
'Inrapporteringsdatum_SR',
|
||||
'Godkannandedatum_SR',
|
||||
'Avvisatdatum_SR',
|
||||
'Handlaggning_startad',
|
||||
'Andringsbeslutdatum',
|
||||
'Slut_avropsperiod',
|
||||
'',
|
||||
];
|
||||
|
||||
function generateHandelser(amount = 10) {
|
||||
const handelser = [];
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -147,7 +147,7 @@ router.render = (req, res) => {
|
||||
startdatumAvrop,
|
||||
slutdatumAvrop,
|
||||
hasAvbrott,
|
||||
genomforandeReferens,
|
||||
genomforandeReferens: genomforandeReferens.toString(),
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user