Skip to content

Commit 02fe5fb

Browse files
ShaughnShaughn
authored andcommitted
tidy comments and create error guide
1 parent 49851cf commit 02fe5fb

File tree

2 files changed

+289
-3
lines changed

2 files changed

+289
-3
lines changed

errorDecoderInformation.md

Lines changed: 289 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,289 @@
1+
# Intro
2+
When data is stored in the XML or errors are output by the tool they use different names than the aritable. To help clarify bellow are two lists. One of all the rows in the aritable and their numbers. The other has all the data as it is entered into the system or output as errors as well as the row number from which it is fed. By looking at these two lists you should be able to interpret errors. You can figure out what row is being referred to by looking for the airtable row name with the same number (for example PHours has number 42 the same as Planned hours (aim 1) so you can tell that is what it means). It will also help if in the future there seems to be some sort of mix up to double check things are going to the right place.
3+
4+
# Data as it goes into XML
5+
6+
7+
8+
2. ULN: index 2
9+
3. FamilyName: index 4
10+
4. GivenNames: index 3
11+
5. DateOfBirth: index 6
12+
6. Ethnicity: index 8
13+
7. Sex: index 5
14+
8. NINumber: index 7 (with whitespace removed)
15+
9. PlanLearnHours: index 16 (optional)
16+
10. PostcodePrior: index 9
17+
11. Postcode: index 10
18+
12. AddLine1: index 11
19+
13. TelNo: index 12 (optional)
20+
14. LLDDHealthProb: index 13 (converted to 1 or 9)
21+
15. PriorAttain:
22+
- PriorLevel: index 15
23+
- DateLevelApp: index 14
24+
25+
16. LLDDandHealthProblem:
26+
- LLDDCat: index 13
27+
- PrimaryLLDD: hardcoded as 1
28+
29+
17. LearnerEmploymentStatus (First Employment Entry):
30+
- EmpStat: index 18
31+
- DateEmpStatApp: index 17
32+
- EmpId: index 19 (optional)
33+
- EmploymentStatusMonitoring:
34+
- LOE (ESMType): index 23
35+
- EII (ESMType): index 24
36+
- LOU (ESMType): index 25
37+
- SEI (ESMType): index 21
38+
- SEM (ESMType): index 20
39+
- OET (ESMType): index 22
40+
41+
18. LearnerEmploymentStatus (Second Employment Entry):
42+
- EmpStat: index 27
43+
- DateEmpStatApp: index 26
44+
- EmpId: index 28 (optional)
45+
- EmploymentStatusMonitoring:
46+
- EII (ESMType): index 29
47+
- LOE (ESMType): index 33
48+
- SEI (ESMType): index 31
49+
- SEM (ESMType): index 32
50+
- OET (ESMType): index 30
51+
52+
19. LearningDelivery:
53+
- LearnAimRef: index 35
54+
- AimType: index 34
55+
- LearnStartDate: index 36
56+
- LearnPlanEndDate: index 37
57+
- FundModel: index 38
58+
- PHours: index 42 (optional)
59+
- OTJActHours: index 43 (optional)
60+
- ProgType: index 39
61+
- StdCode: index 40 (optional)
62+
- DelLocPostCode: index 41
63+
- EPAOrgID: index 45 (optional)
64+
- ConRefNumber: index 44 (optional)
65+
- CompStatus: index 60 (optional)
66+
- LearnActEndDate: index 61 (optional)
67+
- WithdrawReason: index 64 (optional)
68+
- Outcome: index 63 (optional)
69+
- AchDate: index 62 (optional)
70+
- OutGrade: index 65 (optional)
71+
72+
20. LearningDeliveryFAM:
73+
- FFI (LearnDelFAMType): index 50
74+
- SOF (LearnDelFAMType): index 51
75+
- Contract Type:
76+
- LearnDelFAMType: index 46
77+
- LearnDelFAMCode: index 47
78+
- LearnDelFAMDateFrom: index 48 (optional)
79+
- LearnDelFAMDateTo: index 49 (optional)
80+
81+
21. AppFinRecord:
82+
- First Financial Record:
83+
- AFinType: index 52
84+
- AFinCode: index 53 (optional)
85+
- AFinDate: index 54 (optional)
86+
- AFinAmount: index 55 (optional)
87+
- Second Financial Record:
88+
- AFinType: index 56
89+
- AFinCode: index 57 (optional)
90+
- AFinDate: index 58 (optional)
91+
- AFinAmount: index 59 (optional)
92+
93+
# Data as it is displayed in the airTable
94+
95+
0. Record
96+
1. Previous UKPRN
97+
2. ULN
98+
3. Given name
99+
4. Family name
100+
5. Sex
101+
6. Date of birth
102+
7. NI number
103+
8. Ethnic group
104+
9. Prior post code
105+
10. Post code
106+
11. Street address
107+
12. Telephone number
108+
13. Primary additional needs
109+
14. Prior attainment date applies to
110+
15. Prior attainment
111+
16. Learning hours (skills bootcamp)
112+
17. Employment #1 date applies to
113+
18. Employment status #1
114+
19. Employer identifier #1
115+
20. Small employer #1
116+
21. Is the learner self employed? #1
117+
22. Has the learner been made redundant? #1
118+
23. Length of employment #1
119+
24. Employment intensity indicator #1
120+
25. Length of unemployment #1
121+
26. Employment #2 date applies to
122+
27. Employment status #2
123+
28. Employer identifier #2
124+
29. Employment intensity indicator #2
125+
30. Has the learner been made redundant? #2
126+
31. Is the learner self employed? #2
127+
32. Small employer #2
128+
33. Length of employment #2
129+
34. Aim type (programme aim 1)
130+
35. Programme aim 1 Learning ref
131+
36. Start date (aim 1)
132+
37. Planned end date (aim 1)
133+
38. Funding module (aim 1)
134+
39. Programme type (aim 1)
135+
40. Apprentice standard (aim 1)
136+
41. Delivery postcode (aim 1)
137+
42. Planned hours (aim 1)
138+
43. Actual hours (aim 1)
139+
44. Contract Ref (aim 1)
140+
45. EPAO ID (aim 1)
141+
46. Contract type (aim 1)
142+
47. Contract type code (aim 1)
143+
48. Date applies from (aim1)
144+
49. Date applies to (aim 1)
145+
50. Funding indicator (aim 1)
146+
51. Source of funding (aim 1)
147+
52. Financial type 1 (aim 1)
148+
53. Financial code 1 (aim 1)
149+
54. Financial start date 1 (aim 1)
150+
55. Training price (aim 1)
151+
56. Financial type 2 (aim 1)
152+
57. Financial code 2 (aim 1)
153+
58. Financial start date 2 (aim 1)
154+
59. Total assessment price (aim 1)
155+
60. Completion status (aim 1)
156+
61. Actual end date (aim 1)
157+
62. Achievement date (aim 1)
158+
63. Outcome (aim 1)
159+
64. Withdrawal reason (aim 1)
160+
65. Outcome grade (aim 1)
161+
66. Aim type (programme aim 2)
162+
67. Programme aim 2 Learning ref
163+
68. Start date (aim 2)
164+
69. Planned end date (aim 2)
165+
70. Funding module (aim 2)
166+
71. Programme type (aim 2)
167+
72. Apprentice standard (aim 2)
168+
73. Delivery postcode (aim 2)
169+
74. Planned hours (aim2)
170+
75. Actual hours (aim 2)
171+
76. Contract ref (aim 2)
172+
77. EPAO ID (aim 2)
173+
78. Contract type (aim 2)
174+
79. Contract type code (aim 2)
175+
80. Date applies from (aim 2)
176+
81. Date applies to (aim 2)
177+
82. Funding indicator (aim 2)
178+
83. Source of funding (aim 2)
179+
84. Financial type 1 (aim 2)
180+
85. Financial code 1 (aim 2)
181+
86. Financial start date 1 (aim 2)
182+
87. Training price (aim 2)
183+
88. Financial type 2 (aim 2)
184+
89. Financial code 2 (aim 2)
185+
90. Financial start date 2 (aim 2)
186+
91. Total assessment price (aim 2)
187+
92. Completion status (aim 2)
188+
93. Actual end date (aim 2)
189+
94. Achievement date (aim 2)
190+
95. Outcome (aim 2)
191+
96. Withdrawal reason (aim 2)
192+
97. Outcome grade (aim 2)
193+
98. Aim type (programme aim 3)
194+
99. Programme aim 3 learning ref
195+
100. Start date (aim 3)
196+
101. Planned end date (aim 3)
197+
102. Funding module (aim 3)
198+
103. Programme type (aim 3)
199+
104. Apprentice standard (aim 3)
200+
105. Delivery postcode (aim 3)
201+
106. Planned hours (aim 3)
202+
107. Actual hours (aim 3)
203+
108. Contract ref (aim 3)
204+
109. EPAO ID (aim 3)
205+
110. Contract type (aim 3)
206+
111. Contract type code (aim 3)
207+
112. Date applies from (aim 3)
208+
113. Date applies to (aim 3)
209+
114. Funding indicator (aim 3)
210+
115. Source of funding (aim 3)
211+
116. Financial type 1 (aim 3)
212+
117. Financial code 1 (aim 3)
213+
118. Financial start date 1 (aim 3)
214+
119. Training price (aim 3)
215+
120. Financial type 2 (aim 3)
216+
121. Financial code 2 (aim 3)
217+
122. Financial start date 2 (aim 3)
218+
123. Total assessment price (aim 3)
219+
124. Completion status (aim 3)
220+
125. Actual end date (aim 3)
221+
126. Achievement date (aim 3)
222+
127. Withdrawal reason (aim 3)
223+
128. Outcome (aim 3)
224+
129. Outcome grade (aim 3)
225+
130. Aim type (programme aim 4)
226+
131. Programme aim 2 learning ref
227+
132. Start date (aim 4)
228+
133. Planned end date (aim 4)
229+
134. Funding module (aim 4)
230+
135. Programme type (aim 4)
231+
136. Apprentice standard (aim 4)
232+
137. Delivery postcode (aim 4)
233+
138. Planned hours (aim 4)
234+
139. Actual hours (aim 4)
235+
140. Contract ref (aim 4)
236+
141. EPAO ID (aim 4)
237+
142. Contract type (aim 4)
238+
143. Contract type code (aim 4)
239+
144. Date applies from (aim 4)
240+
145. Date applies to (aim 4)
241+
146. Funding indicator (aim 4)
242+
147. Source of funding (aim 4)
243+
148. Financial type 1 (aim 4)
244+
149. Financial code 1 (aim 4)
245+
150. Financial start date 1 (aim 4)
246+
151. Training price (aim 4)
247+
152. Financial type 2 (aim 4)
248+
153. Financial code 2 (aim 4)
249+
154. Financial start date 2 (aim 4)
250+
155. Total assessment price (aim 4)
251+
156. Completion status (aim 4)
252+
157. Actual end date (aim 4)
253+
158. Achievement date (aim 4)
254+
159. Withdrawal reason (aim 4)
255+
160. Outcome (aim 4)
256+
161. Outcome grade (aim 4)
257+
162. Aim type (programme aim 5)
258+
163. Programme aim 5 learning ref
259+
164. Start date (aim 5)
260+
165. Planned end date (aim 5)
261+
166. Funding module (aim 5)
262+
167. Programme type (aim 5)
263+
168. Apprentice standard (aim 5)
264+
169. Delivery postcode (aim 5)
265+
170. Planned hours (aim 5)
266+
171. Actual hours (aim 5)
267+
172. Contract ref (aim 5)
268+
173. EPAO ID (aim 5)
269+
174. Contract type (aim 5)
270+
175. Contract type code (aim 5)
271+
176. Date applies from (aim 5)
272+
177. Date applies to (aim 5)
273+
178. Funding indicator (aim 5)
274+
179. Source of funding (aim 5)
275+
180. Financial type 1 (aim 5)
276+
181. Financial code 1 (aim 5)
277+
182. Financial start date 1 (aim 5)
278+
183. Training price (aim 5)
279+
184. Financial type 2 (aim 5)
280+
185. Financial code 2 (aim 5)
281+
186. Financial start date 2 (aim 5)
282+
187. Total assessment price (aim 5)
283+
188. Completion status (aim 5)
284+
189. Actual end date (aim 5)
285+
190. Achievement date (aim 5)
286+
191. Withdrawal reason (aim 5)
287+
192. Outcome (aim 5)
288+
193. Outcome grade (aim 5)
289+

main.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,6 @@ async function saveDialouge() {
554554
try {
555555

556556

557-
// Show save dialog
558557
const result = await dialog.showSaveDialog({
559558
title: 'Export XML File',
560559
defaultPath: path.join(app.getPath('documents'), `ILR-10085696-${versionForExport.split('.')[0]}-${formatDateTime(currentDate)}-01.xml`),
@@ -563,9 +562,7 @@ async function saveDialouge() {
563562
]
564563
});
565564
console.log('result.cancled', result.canceled, " result filepath " , result.filePath)
566-
// If user didn't cancel
567565
if (!result.canceled && result.filePath) {
568-
// Copy from temp to chosen location
569566
console.log('copy file from ',XMLfilePath, ' to ', result.filePath)
570567
await fs.promises.copyFile(XMLfilePath, result.filePath);
571568
}

0 commit comments

Comments
 (0)