Skip to content

Commit f1acfb5

Browse files
Merge pull request #21 from foundersandcoders/fix/apply-legacy-reference-numbers
Fix: Apply Legacy Reference Numbers from Source Data
2 parents e16db96 + 9b05985 commit f1acfb5

File tree

11 files changed

+495
-245
lines changed

11 files changed

+495
-245
lines changed
Lines changed: 167 additions & 167 deletions
Large diffs are not rendered by default.

docs/inputs/25_26 Example.csv

Lines changed: 39 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,72 @@
1-
Alexander Perez-Davies,,
2-
5796080759,
3-
Alexander ,
4-
Perez-Davies,
1+
Jason Ross Warren,,
2+
5484836491,
3+
Jason Ross,
4+
Warren,
55
M,
6-
1993-04-05,
7-
JX055947D,
8-
38,
9-
N16 7UJ,
10-
N16 7UJ,
11-
Flat 24 Morris Blitz Court,
12-
07525334311,
13-
99,
14-
2024-05-13,
15-
6,
6+
1985-05-23,
7+
JW661714C,
8+
31,
9+
E17 8QJ,
10+
E17 8QJ,
11+
"36 Devonshire Road, London, E17 8QJ",
12+
07725913649,
13+
94,
14+
2024-09-02,
15+
10,
1616
,
17-
2024-05-06,
17+
2024-08-26,
1818
10,
1919
999999999,
2020
,
2121
0 checked out of 1,
2222
,
23-
2,
24-
8,
23+
4,
24+
6,
2525
,
26-
2024-05-20,
26+
2024-09-09,
2727
10,
2828
999999999,
2929
8,
3030
,
3131
,
32-
0 checked out of 1,
32+
1 checked out of 1,
3333
4,
3434
1,
3535
ZPROG001,
36-
2024-05-20,
37-
2026-05-20,
36+
2024-09-09,
37+
2026-06-09,
3838
36,
3939
25,
4040
2,
4141
N4 3HH,
4242
504,
43-
505,
43+
,
4444
,
4545
EPA0475,
4646
ACT,
4747
1,
48-
2024-05-20,
49-
2025-08-20,
48+
2024-09-09,
49+
,
5050
,
5151
105,
5252
TNP,
5353
1,
54-
2024-05-20,
54+
2024-09-09,
5555
16150,
5656
TNP,
5757
2,
58-
2024-05-20,
58+
2024-09-09,
5959
1850,
60-
2,
61-
2025-06-04,
62-
2025-08-20,
6360
1,
6461
,
65-
DE,
62+
,
63+
,
64+
,
65+
,
6666
3,
6767
Z0001947,
68-
2024-05-20,
69-
2026-05-20,
68+
2024-09-09,
69+
2026-06-09,
7070
36,
7171
25,
7272
2,
@@ -89,12 +89,8 @@ N4 3HH,
8989
,
9090
,
9191
,
92-
2,
93-
2025-06-04,
94-
,
9592
1,
9693
,
97-
DE,
9894
,
9995
,
10096
,
@@ -218,3 +214,10 @@ DE,
218214
,
219215
,
220216
,
217+
,
218+
,
219+
,
220+
,
221+
,
222+
0145,
223+
94

docs/inputs/25_26 Properties.csv

Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
Airtable ID, Previous UKPRN,
2+
ULN,
3+
Given name,
4+
Family name,
5+
Sex ,
6+
Date of birth,
7+
NI number,
8+
Ethnic group,
9+
Prior post code,
10+
Post code,
11+
Street address ,
12+
Telephone number,
13+
Primary additional needs,
14+
Prior attainment date applies to,
15+
Prior attainment,
16+
Learning hours (skills bootcamp),
17+
Employment #1 date applies to,
18+
Employment status #1,
19+
Employer identifier #1 ,
20+
Small employer #1,
21+
Is the learner self employed? #1,
22+
Has the learner been made redundant? #1,
23+
Length of employment #1,
24+
Employment intensity indicator #1,
25+
Length of unemployment #1,
26+
Employment #2 date applies to,
27+
Employment status #2,
28+
Employer identifier #2,
29+
Employment intensity indicator #2,
30+
Has the learner been made redundant? #2,
31+
Is the learner self employed? #2,
32+
Small employer #2 ,
33+
Length of employment #2,
34+
Aim type (programme aim 1),
35+
Programme aim 1 Learning ref ,
36+
Start date (aim 1),
37+
Planned end date (aim 1),
38+
Funding module (aim 1),
39+
Programme type (aim 1),
40+
Apprentice standard (aim 1),
41+
Delivery postcode (aim 1),
42+
Planned hours (aim 1),
43+
Actual hours (aim 1),
44+
Contract Ref (aim 1),
45+
EPAO ID (aim 1),
46+
Contract type (aim 1),
47+
Contract type code (aim 1),
48+
Date applies from (aim1),
49+
Date applies to (aim 1),
50+
Funding indicator (aim 1),
51+
Source of funding (aim 1),
52+
Financial type 1 (aim 1),
53+
Financial code 1 (aim 1),
54+
Financial start date 1 (aim 1),
55+
Training price (aim 1),
56+
Financial type 2 (aim 1),
57+
Financial code 2 (aim 1),
58+
Financial start date 2 (aim 1),
59+
Total assessment price (aim 1),
60+
Completion status (aim 1),
61+
Actual end date (aim 1),
62+
Achievement date (aim 1),
63+
Outcome (aim 1),
64+
Withdrawal reason (aim 1),
65+
Outcome grade (aim 1),
66+
Aim type (programme aim 2),
67+
Programme aim 2 Learning ref ,
68+
Start date (aim 2),
69+
Planned end date (aim 2),
70+
Funding module (aim 2),
71+
Programme type (aim 2),
72+
Apprentice standard (aim 2),
73+
Delivery postcode (aim 2),
74+
Planned hours (aim2),
75+
Actual hours (aim 2),
76+
Contract ref (aim 2),
77+
EPAO ID (aim 2),
78+
Contract type (aim 2),
79+
Contract type code (aim 2),
80+
Date applies from (aim 2),
81+
Date applies to (aim 2),
82+
Funding indicator (aim 2),
83+
Source of funding (aim 2),
84+
Financial type 1 (aim 2),
85+
Financial code 1 (aim 2),
86+
Financial start date 1 (aim 2),
87+
Training price (aim 2),
88+
Financial type 2 (aim 2),
89+
Financial code 2 (aim 2),
90+
Financial start date 2 (aim 2),
91+
Total assessment price (aim 2),
92+
Completion status (aim 2),
93+
Actual end date (aim 2),
94+
Achievement date (aim 2),
95+
Outcome (aim 2),
96+
Withdrawal reason (aim 2),
97+
Outcome grade (aim 2),
98+
Aim type (programme aim 3),
99+
Programme aim 3 learning ref ,
100+
Start date (aim 3),
101+
Planned end date (aim 3),
102+
Funding module (aim 3),
103+
Programme type (aim 3),
104+
Apprentice standard (aim 3),
105+
Delivery postcode (aim 3),
106+
Planned hours (aim 3),
107+
Actual hours (aim 3),
108+
Contract ref (aim 3),
109+
EPAO ID (aim 3),
110+
Contract type (aim 3),
111+
Contract type code (aim 3),
112+
Date applies from (aim 3),
113+
Date applies to (aim 3),
114+
Funding indicator (aim 3),
115+
Source of funding (aim 3),
116+
Financial type 1 (aim 3),
117+
Financial code 1 (aim 3),
118+
Financial start date 1 (aim 3),
119+
Training price (aim 3),
120+
Financial type 2 (aim 3),
121+
Financial code 2 (aim 3),
122+
Financial start date 2 (aim 3),
123+
Total assessment price (aim 3),
124+
Completion status (aim 3),
125+
Actual end date (aim 3),
126+
Achievement date (aim 3),
127+
Withdrawal reason (aim 3),
128+
Outcome (aim 3),
129+
Outcome grade (aim 3),
130+
Aim type (programme aim 4),
131+
Programme aim 4 learning ref,
132+
Start date (aim 4),
133+
Planned end date (aim 4),
134+
Funding module (aim 4),
135+
Programme type (aim 4),
136+
Apprentice standard (aim 4),
137+
Delivery postcode (aim 4),
138+
Planned hours (aim 4),
139+
Actual hours (aim 4),
140+
Contract ref (aim 4),
141+
EPAO ID (aim 4),
142+
Contract type (aim 4),
143+
Contract type code (aim 4),
144+
Date applies from (aim 4),
145+
Date applies to (aim 4),
146+
Funding indicator (aim 4),
147+
Source of funding (aim 4),
148+
Financial type 1 (aim 4),
149+
Financial code 1 (aim 4),
150+
Financial start date 1 (aim 4),
151+
Training price (aim 4),
152+
Financial type 2 (aim 4),
153+
Financial code 2 (aim 4),
154+
Financial start date 2 (aim 4),
155+
Total assessment price (aim 4),
156+
Completion status (aim 4),
157+
Actual end date (aim 4),
158+
Achievement date (aim 4),
159+
Withdrawal reason (aim 4),
160+
Outcome (aim 4),
161+
Outcome grade (aim 4),
162+
Aim type (programme aim 5),
163+
Programme aim 5 learning ref ,
164+
Start date (aim 5),
165+
Planned end date (aim 5),
166+
Funding module (aim 5),
167+
Programme type (aim 5),
168+
Apprentice standard (aim 5),
169+
Delivery postcode (aim 5),
170+
Planned hours (aim 5),
171+
Actual hours (aim 5),
172+
Contract ref (aim 5),
173+
EPAO ID (aim 5),
174+
Contract type (aim 5),
175+
Contract type code (aim 5),
176+
Date applies from (aim 5),
177+
Date applies to (aim 5),
178+
Funding indicator (aim 5),
179+
Source of funding (aim 5),
180+
Financial type 1 (aim 5),
181+
Financial code 1 (aim 5),
182+
Financial start date 1 (aim 5),
183+
Training price (aim 5),
184+
Financial type 2 (aim 5),
185+
Financial code 2 (aim 5),
186+
Financial start date 2 (aim 5),
187+
Total assessment price (aim 5),
188+
Completion status (aim 5),
189+
Actual end date (aim 5),
190+
Achievement date (aim 5),
191+
Outcome (aim 5),
192+
Withdrawal reason (aim 5),
193+
Outcome grade (aim 5),
194+
Length of unemployment #2,
195+
Date applies to Employment status #3,
196+
Employment status #3,
197+
Employer identifier #3,
198+
Small employer #3,
199+
Self employed #3,
200+
Made Redundant #3,
201+
Length of employment #3,
202+
Employment hours #3,
203+
Length of unemployment #3,
204+
Date applies to Employment status #4,
205+
Employment status #4,
206+
Employer identifier #4,
207+
Small employer #4,
208+
Self employed #4,
209+
Made Redundant #4,
210+
Length of employment #4,
211+
Employment hours #4,
212+
Length of unemployment #4,
213+
Date applies to Employment status #5,
214+
Employment status #5,
215+
Employer identifier #5,
216+
Small employer #5,
217+
Self employed #5,
218+
Made Redundant #5,
219+
Length of employment #5,
220+
Employment hours #5,
221+
Length of unemployment #5,
222+
PrevLearnRefNum,
223+
LearnRefNum

main.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ function createWindow() {
9292
win.webContents.toggleDevTools();
9393
});
9494
}
95+
9596
app.whenReady().then(() => {
9697
createWindow();
9798
app.on("activate", () => {
@@ -208,6 +209,4 @@ ipcMain.on("openSave", (event) => {
208209
saveDialogue();
209210
});
210211

211-
app.on("window-all-closed", () => {
212-
app.quit();
213-
});
212+
app.on("window-all-closed", () => { app.quit() });
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
function buildHealthDetails(dataArray, i) {
2+
return {
3+
LLDDHealthProb: dataArray[i][13] != "99" ? 1 : 9,
4+
LLDDandHealthProblem: dataArray[i][13] != "99"
5+
? [{
6+
LLDDCat: dataArray[i][13],
7+
PrimaryLLDD: 1
8+
}]
9+
: undefined
10+
}
11+
}
12+
13+
module.exports = { buildHealthDetails };

0 commit comments

Comments
 (0)