@casomoltd/nhs-pay 0.11.0 → 0.12.0
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.
- package/README.md +48 -0
- package/dist/award.d.ts +8 -8
- package/dist/award.js +8 -8
- package/dist/circulars/england-md-1-2026r.d.ts +2 -3
- package/dist/circulars/england-md-1-2026r.js +2 -3
- package/dist/circulars/england-md-1-2026r.js.map +1 -1
- package/dist/circulars/ni-hsc-tc8-05-2025.d.ts +2 -2
- package/dist/circulars/ni-hsc-tc8-05-2025.js +2 -2
- package/dist/circulars/scotland-pcs-dd-2025-01.d.ts +2 -3
- package/dist/circulars/scotland-pcs-dd-2025-01.js +2 -3
- package/dist/circulars/scotland-pcs-dd-2025-01.js.map +1 -1
- package/dist/circulars/scotland-pcs-dd-2026-01.d.ts +2 -2
- package/dist/circulars/scotland-pcs-dd-2026-01.js +2 -2
- package/dist/circulars/wales-mdw-01-2025.d.ts +2 -2
- package/dist/circulars/wales-mdw-01-2025.js +2 -2
- package/dist/circulars/wales-mdw-01-2026.d.ts +2 -2
- package/dist/circulars/wales-mdw-01-2026.js +2 -2
- package/dist/gad/erf-2023-06-30.d.ts +39 -3
- package/dist/gad/erf-2023-06-30.js +39 -3
- package/dist/gad/erf-2023-06-30.js.map +1 -1
- package/dist/gad/factor-table.d.ts +10 -0
- package/dist/gad/factor-table.js.map +1 -1
- package/dist/gad/lrf-2023-06-30.d.ts +39 -3
- package/dist/gad/lrf-2023-06-30.js +39 -3
- package/dist/gad/lrf-2023-06-30.js.map +1 -1
- package/dist/hcas-pcts.js +3 -1
- package/dist/hcas-pcts.js.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/pension/history.d.ts +105 -0
- package/dist/pension/history.js +115 -0
- package/dist/pension/history.js.map +1 -0
- package/dist/pension/ledger.d.ts +146 -0
- package/dist/pension/ledger.js +193 -0
- package/dist/pension/ledger.js.map +1 -0
- package/dist/pension/prices.d.ts +125 -0
- package/dist/pension/prices.js +108 -0
- package/dist/pension/prices.js.map +1 -0
- package/dist/pension/seed.d.ts +75 -0
- package/dist/pension/seed.js +82 -0
- package/dist/pension/seed.js.map +1 -0
- package/dist/pension/uplift.d.ts +151 -0
- package/dist/pension/uplift.js +135 -0
- package/dist/pension/uplift.js.map +1 -0
- package/dist/pension-projection.d.ts +189 -46
- package/dist/pension-projection.js +365 -201
- package/dist/pension-projection.js.map +1 -1
- package/dist/pension.js +9 -10
- package/dist/pension.js.map +1 -1
- package/dist/post.d.ts +24 -16
- package/dist/post.js +2 -3
- package/dist/post.js.map +1 -1
- package/dist/revaluation.d.ts +119 -30
- package/dist/revaluation.js +175 -29
- package/dist/revaluation.js.map +1 -1
- package/dist/scales.d.ts +17 -10
- package/dist/scales.js +17 -10
- package/dist/scales.js.map +1 -1
- package/dist/take-home.d.ts +9 -5
- package/dist/take-home.js +9 -5
- package/dist/take-home.js.map +1 -1
- package/package.json +1 -1
package/dist/revaluation.js
CHANGED
|
@@ -7,26 +7,41 @@
|
|
|
7
7
|
* point: it is ADDED, not compounded. 3.1% CPI gives 4.6%,
|
|
8
8
|
* not the 4.6465% that (1.031 x 1.015) would produce.
|
|
9
9
|
*
|
|
10
|
-
* Sources — the legal one first
|
|
10
|
+
* Sources — the legal one first. Each is named as it appears in
|
|
11
|
+
* docs/source-archive.md, which holds every publisher URL and
|
|
12
|
+
* archived copy so that this file names documents and links
|
|
13
|
+
* none:
|
|
11
14
|
*
|
|
12
15
|
* HM Treasury Public Service Pensions Revaluation Orders, made
|
|
13
16
|
* under s.9(2) Public Service Pensions Act 2013. These are the
|
|
14
|
-
* legal source of the prices figure; each row below carries
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
+
* legal source of the prices figure; each row below carries the
|
|
18
|
+
* SI that made it, and an SI number resolves on
|
|
19
|
+
* legislation.gov.uk without a link from here.
|
|
17
20
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
+
* "HM Treasury HCWS437 — Public Service Pension
|
|
22
|
+
* Scheme Indexation and Revaluation 2025", the
|
|
23
|
+
* Chief Secretary's annual written ministerial statement. Its
|
|
24
|
+
* per-scheme table gives NHS active revaluation as 3.2%
|
|
25
|
+
* independently of the Order and of the valuation report, and
|
|
26
|
+
* states why the date moved to 6 April.
|
|
21
27
|
*
|
|
22
|
-
* SPPA NHS
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
28
|
+
* "SPPA NHS Circular 2023/01 — pension indexation and CARE
|
|
29
|
+
* revaluation" — the clearest annual statement of the exact NHS
|
|
30
|
+
* in-service rate. Scotland, but the same CPI + 1.5% rule and
|
|
31
|
+
* the same rate as England and Wales.
|
|
26
32
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
33
|
+
* "NHS Pension Scheme Valuation Report 2020", Appendix E
|
|
34
|
+
* "Inter-valuation events" — the in-service revaluation as
|
|
35
|
+
* ACTUALLY APPLIED, year by year from April 2016. This is the
|
|
36
|
+
* rate column's source, and it is independent of the orders.
|
|
37
|
+
*
|
|
38
|
+
* "SI 2015/94 Sch 9 para 3 — revaluation": the NHS Pension
|
|
39
|
+
* Scheme Regulations 2015 add 1.5 to the prices "increase or
|
|
40
|
+
* decrease", and pro-rate a leaver's final year by COMPLETE
|
|
41
|
+
* MONTHS.
|
|
42
|
+
*
|
|
43
|
+
* "NHSBSA KA-02728 — how your pension is revalued", on how it is
|
|
44
|
+
* applied to members and on the date change below.
|
|
30
45
|
*
|
|
31
46
|
* Cross-checked against the "Revaluation" column of a member's
|
|
32
47
|
* Annual Benefit Statement (2015 Section, updated to
|
|
@@ -35,9 +50,10 @@
|
|
|
35
50
|
* rates above as actually applied to a real record, rather
|
|
36
51
|
* than as legislated. Nothing else from that document is used
|
|
37
52
|
* here: the earnings beside that column are the member's.
|
|
38
|
-
*
|
|
53
|
+
* Archived as "Annual Benefit Statement, 2015 Section,
|
|
54
|
+
* redacted" — see docs/source-archive.md.
|
|
39
55
|
*
|
|
40
|
-
* ──
|
|
56
|
+
* ── Three facts this data carries ───────────────────
|
|
41
57
|
*
|
|
42
58
|
* **The revaluation date moved.** It was 1 April; from 2023 it
|
|
43
59
|
* is 6 April, changed to manage the interaction with the
|
|
@@ -47,21 +63,32 @@
|
|
|
47
63
|
* **CPI is sourced independently of the rate**, never derived
|
|
48
64
|
* from it. Taking `septemberCpiPct = ratePct - 1.5` would make
|
|
49
65
|
* the test that checks the +1.5 rule agree with itself, which
|
|
50
|
-
* is no test at all.
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
66
|
+
* is no test at all. So the two columns come from two
|
|
67
|
+
* documents that do not cite each other: prices from each
|
|
68
|
+
* Treasury Order's own operative words, and the rate AS
|
|
69
|
+
* APPLIED from the 2020 valuation report's inter-valuation
|
|
70
|
+
* table. They agree on all eleven years.
|
|
54
71
|
*
|
|
55
|
-
*
|
|
72
|
+
* **A negative prices figure is carried through, not floored.**
|
|
73
|
+
* September 2015 CPI was -0.1% and the 2016 order specifies a
|
|
74
|
+
* DECREASE. The scheme applied 1.4% — that decrease with 1.5
|
|
75
|
+
* added — because Sch 9 para 3 of the 2015 Regulations says to
|
|
76
|
+
* add 1.5 to the percentage increase "or decrease" in prices.
|
|
77
|
+
* The zero floor people expect belongs to a different
|
|
78
|
+
* instrument: the Pensions Increase (Review) Order, which gave
|
|
79
|
+
* deferred members and pensions in payment 0.0% that same
|
|
80
|
+
* April. Active and deferred genuinely diverge in a deflation
|
|
81
|
+
* year, so neither can be modelled as the other.
|
|
82
|
+
*
|
|
83
|
+
* ── This table is COMPLETE ──────────────────────────
|
|
56
84
|
*
|
|
57
85
|
* The 2015 Scheme began on 1 April 2015, so the first
|
|
58
|
-
* in-service revaluation was applied in April 2016
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* `revaluationFor
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* tracked at https://github.com/casomoltd/nhs-pay/issues/10
|
|
86
|
+
* in-service revaluation was applied in April 2016. All eleven
|
|
87
|
+
* years to 2026 are here, which is what lets a projection walk
|
|
88
|
+
* a member's whole membership rather than only the part since
|
|
89
|
+
* their statement. `revaluationFor` still returns null rather
|
|
90
|
+
* than guessing for a year not held — which now means only a
|
|
91
|
+
* year whose order has not yet been made.
|
|
65
92
|
*
|
|
66
93
|
* The projection in pension-projection.ts compounds rather
|
|
67
94
|
* than adds — https://github.com/casomoltd/nhs-pay/issues/10
|
|
@@ -80,11 +107,61 @@ export const ACTIVE_REVAL_BONUS_PCT = 1.5;
|
|
|
80
107
|
* Revaluation Order is made — a year's rate is known months
|
|
81
108
|
* before the year it applies to ends. */
|
|
82
109
|
export const IN_SERVICE_REVALUATION = [
|
|
110
|
+
{
|
|
111
|
+
// The scheme's FIRST uplift, and the only one from a
|
|
112
|
+
// negative prices figure: September 2015 CPI was -0.1%
|
|
113
|
+
// and the order says so in terms ("a decrease of 0.1 per
|
|
114
|
+
// cent"). The scheme added 1.5 to that decrease rather
|
|
115
|
+
// than flooring it at zero first, which is why this row
|
|
116
|
+
// is 1.4 and not 1.5 - see the header. Its SI is titled
|
|
117
|
+
// "Revaluation (Prices) Order"; later years drop the
|
|
118
|
+
// qualifier.
|
|
119
|
+
yearEnd: 2016,
|
|
120
|
+
septemberCpiPct: -0.1,
|
|
121
|
+
ratePct: 1.4,
|
|
122
|
+
appliedOn: '2016-04-01',
|
|
123
|
+
si: 'SI 2016/438',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
yearEnd: 2017,
|
|
127
|
+
septemberCpiPct: 1.0,
|
|
128
|
+
ratePct: 2.5,
|
|
129
|
+
appliedOn: '2017-04-01',
|
|
130
|
+
si: 'SI 2017/242',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
yearEnd: 2018,
|
|
134
|
+
septemberCpiPct: 3.0,
|
|
135
|
+
ratePct: 4.5,
|
|
136
|
+
appliedOn: '2018-04-01',
|
|
137
|
+
si: 'SI 2018/338',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
yearEnd: 2019,
|
|
141
|
+
septemberCpiPct: 2.4,
|
|
142
|
+
ratePct: 3.9,
|
|
143
|
+
appliedOn: '2019-04-01',
|
|
144
|
+
si: 'SI 2019/455',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
yearEnd: 2020,
|
|
148
|
+
septemberCpiPct: 1.7,
|
|
149
|
+
ratePct: 3.2,
|
|
150
|
+
appliedOn: '2020-04-01',
|
|
151
|
+
si: 'SI 2020/230',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
yearEnd: 2021,
|
|
155
|
+
septemberCpiPct: 0.5,
|
|
156
|
+
ratePct: 2.0,
|
|
157
|
+
appliedOn: '2021-04-01',
|
|
158
|
+
si: 'SI 2021/276',
|
|
159
|
+
},
|
|
83
160
|
{
|
|
84
161
|
yearEnd: 2022,
|
|
85
162
|
septemberCpiPct: 3.1,
|
|
86
163
|
ratePct: 4.6,
|
|
87
|
-
appliedOn: '2022-04-
|
|
164
|
+
appliedOn: '2022-04-01',
|
|
88
165
|
si: 'SI 2022/215',
|
|
89
166
|
},
|
|
90
167
|
{
|
|
@@ -121,4 +198,73 @@ export const IN_SERVICE_REVALUATION = [
|
|
|
121
198
|
export function revaluationFor(yearEnd) {
|
|
122
199
|
return IN_SERVICE_REVALUATION.find((year) => year.yearEnd === yearEnd) ?? null;
|
|
123
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* The date the pot moves for a given scheme year: 6 April from
|
|
203
|
+
* 2023, 1 April before it — read off the table, never assumed.
|
|
204
|
+
*
|
|
205
|
+
* Lives here rather than with the uplift rule because two
|
|
206
|
+
* callers need it and they must agree: the pension steps on
|
|
207
|
+
* these days, and so must the ruler that reads it. When they
|
|
208
|
+
* disagreed by the five days between 1 and 6 April, a ruler
|
|
209
|
+
* anchored in the pre-2023 era counted its own anchor step and
|
|
210
|
+
* deflated a year that had not passed.
|
|
211
|
+
*/
|
|
212
|
+
export function appliedOnFor(yearEnd) {
|
|
213
|
+
const published = revaluationFor(yearEnd);
|
|
214
|
+
if (published === null)
|
|
215
|
+
return new Date(yearEnd, 3, 6);
|
|
216
|
+
const [y, m, d] = published.appliedOn.split('-').map(Number);
|
|
217
|
+
// Built LOCAL, matching every other date in this library:
|
|
218
|
+
// parsing the ISO string gives UTC midnight, and under BST
|
|
219
|
+
// the two conventions sit an hour apart.
|
|
220
|
+
return new Date(y, m - 1, d);
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* How much prices rose between two dates, using the Treasury
|
|
224
|
+
* Order figures rather than a forecast.
|
|
225
|
+
*
|
|
226
|
+
* **This exists because a past period is a matter of record.**
|
|
227
|
+
* Restating a member's own statement figure in today's money
|
|
228
|
+
* means dividing out the inflation since the statement was
|
|
229
|
+
* made, and that inflation has already happened and already
|
|
230
|
+
* been legislated. Using an assumed CPI there quietly reports
|
|
231
|
+
* a forecast as history.
|
|
232
|
+
*
|
|
233
|
+
* Found by reconciling the statement this file already cites
|
|
234
|
+
* (updated to 31/03/2025, linked above). Between its date and
|
|
235
|
+
* a reading in August 2026 the orders compound to 1.017 x
|
|
236
|
+
* 1.038, where an assumed 2% over the same window gives about
|
|
237
|
+
* 1.028 — so the figure was restated some 2.7% light, and
|
|
238
|
+
* every projection derived from it inherited the gap.
|
|
239
|
+
*
|
|
240
|
+
* **The uplift date is what counts, not the scheme year.** Each
|
|
241
|
+
* order names the day it applies (1 April through 2022, 6 April
|
|
242
|
+
* from 2023), and a member's statement is dated wherever it
|
|
243
|
+
* falls between two of them — so the window is tested against
|
|
244
|
+
* `appliedOn` and nothing is apportioned within a year.
|
|
245
|
+
*
|
|
246
|
+
* Returns how far the published record actually reaches, so a
|
|
247
|
+
* caller can price the remainder itself rather than being
|
|
248
|
+
* handed a number that silently stops early.
|
|
249
|
+
*/
|
|
250
|
+
export function publishedInflationBetween(from, to) {
|
|
251
|
+
let factor = 1;
|
|
252
|
+
let publishedTo = from;
|
|
253
|
+
for (const year of IN_SERVICE_REVALUATION) {
|
|
254
|
+
// Built as a LOCAL date, matching how every other date in
|
|
255
|
+
// this library is constructed. Parsing the ISO string
|
|
256
|
+
// instead makes it UTC midnight, and under BST the two
|
|
257
|
+
// conventions sit an hour apart — which is nothing in
|
|
258
|
+
// money but is enough to stop an exact test being exact,
|
|
259
|
+
// and exactness is the only way to tell this arithmetic
|
|
260
|
+
// is right.
|
|
261
|
+
const [y, m, d] = year.appliedOn.split('-').map(Number);
|
|
262
|
+
const applied = new Date(y, m - 1, d);
|
|
263
|
+
if (applied > from && applied <= to) {
|
|
264
|
+
factor *= 1 + year.septemberCpiPct / 100;
|
|
265
|
+
publishedTo = applied;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return { factor, publishedTo };
|
|
269
|
+
}
|
|
124
270
|
//# sourceMappingURL=revaluation.js.map
|
package/dist/revaluation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revaluation.js","sourceRoot":"","sources":["../src/revaluation.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"revaluation.js","sourceRoot":"","sources":["../src/revaluation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG;AA4BH;wDACwD;AACxD,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAE1C;;yCAEyC;AACzC,MAAM,CAAC,MAAM,sBAAsB,GAA+B;IAChE;QACE,qDAAqD;QACrD,uDAAuD;QACvD,yDAAyD;QACzD,uDAAuD;QACvD,wDAAwD;QACxD,wDAAwD;QACxD,qDAAqD;QACrD,aAAa;QACb,OAAO,EAAE,IAAI;QACb,eAAe,EAAE,CAAC,GAAG;QACrB,OAAO,EAAE,GAAG;QACZ,S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AAG,CAAC,MAAM,CAAC,CAAC;QACxD,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QACtC,IAAI,OAAO,GAAG,IAAI,IAAI,OAAO,IAAI,EAAE,EAAE,CAAC;YACpC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;YACzC,WAAW,GAAG,OAAO,CAAC;QACxB,CAAC;IACH,CAAC;IACD,OAAO,EAAC,MAAM,EAAE,WAAW,EAAC,CAAC;AAC/B,CAAC"}
|
package/dist/scales.d.ts
CHANGED
|
@@ -4,16 +4,23 @@
|
|
|
4
4
|
* Pure salary data — no metadata (labels, slugs, role
|
|
5
5
|
* descriptions); presentation copy is a hub-site concern.
|
|
6
6
|
*
|
|
7
|
-
* Sources
|
|
8
|
-
*
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* -
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
7
|
+
* Sources, by the names they carry in docs/source-archive.md,
|
|
8
|
+
* which holds every publisher URL and archived copy:
|
|
9
|
+
* - "NHS Employers — AfC pay scales 2025/26"
|
|
10
|
+
* - "NHS Employers — AfC pay scales 2026/27" (note its hourly
|
|
11
|
+
* table has printing errors; this file reads the ANNUAL
|
|
12
|
+
* column, so they cannot reach us — see the manifest)
|
|
13
|
+
* - "NHS Employers, 2026 AfC pay scales poster" — the same award
|
|
14
|
+
* rendered a second time by the same publisher, which is what
|
|
15
|
+
* confirms the annual column above is untouched by those errors
|
|
16
|
+
* - "Health Careers — AfC pay rates"
|
|
17
|
+
* - NLW: "GOV.UK — national minimum wage rates"
|
|
18
|
+
* - Wales floor: "Wales, AFC(W) 01/2026 living wage"
|
|
19
|
+
* - HCAS rates: "NHS Terms and Conditions of Service
|
|
20
|
+
* Handbook, amendment 62" (#sa-41), Annex 9
|
|
21
|
+
* - Scotland (both years): "NHS Scotland, AfC pay scales 2025-26
|
|
22
|
+
* and 2026-27 (MSG)" — 2025-26 rates revised by
|
|
23
|
+
* "Scotland, PCS(AFC)2026/01"; 2026-27 in its Annex B
|
|
17
24
|
*/
|
|
18
25
|
import type { Nation, TaxYear } from '@casomoltd/paye-calc';
|
|
19
26
|
import type { ScalePoint } from './scale-point.js';
|
package/dist/scales.js
CHANGED
|
@@ -4,16 +4,23 @@
|
|
|
4
4
|
* Pure salary data — no metadata (labels, slugs, role
|
|
5
5
|
* descriptions); presentation copy is a hub-site concern.
|
|
6
6
|
*
|
|
7
|
-
* Sources
|
|
8
|
-
*
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* -
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
7
|
+
* Sources, by the names they carry in docs/source-archive.md,
|
|
8
|
+
* which holds every publisher URL and archived copy:
|
|
9
|
+
* - "NHS Employers — AfC pay scales 2025/26"
|
|
10
|
+
* - "NHS Employers — AfC pay scales 2026/27" (note its hourly
|
|
11
|
+
* table has printing errors; this file reads the ANNUAL
|
|
12
|
+
* column, so they cannot reach us — see the manifest)
|
|
13
|
+
* - "NHS Employers, 2026 AfC pay scales poster" — the same award
|
|
14
|
+
* rendered a second time by the same publisher, which is what
|
|
15
|
+
* confirms the annual column above is untouched by those errors
|
|
16
|
+
* - "Health Careers — AfC pay rates"
|
|
17
|
+
* - NLW: "GOV.UK — national minimum wage rates"
|
|
18
|
+
* - Wales floor: "Wales, AFC(W) 01/2026 living wage"
|
|
19
|
+
* - HCAS rates: "NHS Terms and Conditions of Service
|
|
20
|
+
* Handbook, amendment 62" (#sa-41), Annex 9
|
|
21
|
+
* - Scotland (both years): "NHS Scotland, AfC pay scales 2025-26
|
|
22
|
+
* and 2026-27 (MSG)" — 2025-26 rates revised by
|
|
23
|
+
* "Scotland, PCS(AFC)2026/01"; 2026-27 in its Annex B
|
|
17
24
|
*/
|
|
18
25
|
import { NATION_KEYS, TAX_YEARS } from '@casomoltd/paye-calc';
|
|
19
26
|
import { ScaleUnavailable } from './errors.js';
|
package/dist/scales.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scales.js","sourceRoot":"","sources":["../src/scales.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"scales.js","sourceRoot":"","sources":["../src/scales.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAG7C,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,EAAE,EAAE,GAAG;CACC,CAAC;AAKX,4CAA4C;AAC5C,MAAM,CAAC,MAAM,YAAY,GACvB,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AAmB3B,mDAAmD;AACnD,yCAAyC;AAEzC,MAAM,iBAAiB,GAAc;IACnC,WAAW,EAAE;QACX,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI;KAC/B;IACD,WAAW,EAAE;QACX,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI;KAC/B;IACD,MAAM,EAAE;QACN,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI;KAC9B;CACF,CAAC;AAEF,mDAAmD;AAEnD,MAAM,kBAAkB,GAA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AAO,EAAC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,MAAM,EAAC,CAAC;AACxC,CAAC;AAED;;;;;yDAKyD;AACzD,MAAM,UAAU,gBAAgB,CAC9B,IAAa,EACb,MAAc;IAEd,MAAM,MAAM,GACV,MAAM,KAAK,WAAW,CAAC,QAAQ;QAC7B,CAAC,CAAC,mBAAmB;QACrB,CAAC,CAAC,UAAU,CAAC;IACjB,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,MAAM,KAAK,WAAW,CAAC,KAAK;QACjC,CAAC,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC;QAC5B,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
|
package/dist/take-home.d.ts
CHANGED
|
@@ -9,11 +9,15 @@
|
|
|
9
9
|
* reducing NI by the pension) overstates take-home; the invariant in
|
|
10
10
|
* {@link nhsTakeHome} guards against it.
|
|
11
11
|
*
|
|
12
|
-
* Sources
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
12
|
+
* Sources, named as they appear in docs/source-archive.md,
|
|
13
|
+
* which holds every publisher URL and archived copy:
|
|
14
|
+
* - Net pay arrangement — "HMRC PTM044230 — net pay
|
|
15
|
+
* arrangements"
|
|
16
|
+
*
|
|
17
|
+
* That a contribution comes off before tax but NOT before NI is
|
|
18
|
+
* generic PAYE rather than NHS practice, so it is paye-calc's
|
|
19
|
+
* rule to state and to cite: casomoltd/paye-calc#29. This
|
|
20
|
+
* library only selects the basis.
|
|
17
21
|
*/
|
|
18
22
|
import { TakeHomePay } from '@casomoltd/paye-calc';
|
|
19
23
|
import type { TaxYear, TaxRegion, StudentLoanPlan, TaxCode } from '@casomoltd/paye-calc';
|
package/dist/take-home.js
CHANGED
|
@@ -9,11 +9,15 @@
|
|
|
9
9
|
* reducing NI by the pension) overstates take-home; the invariant in
|
|
10
10
|
* {@link nhsTakeHome} guards against it.
|
|
11
11
|
*
|
|
12
|
-
* Sources
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
12
|
+
* Sources, named as they appear in docs/source-archive.md,
|
|
13
|
+
* which holds every publisher URL and archived copy:
|
|
14
|
+
* - Net pay arrangement — "HMRC PTM044230 — net pay
|
|
15
|
+
* arrangements"
|
|
16
|
+
*
|
|
17
|
+
* That a contribution comes off before tax but NOT before NI is
|
|
18
|
+
* generic PAYE rather than NHS practice, so it is paye-calc's
|
|
19
|
+
* rule to state and to cite: casomoltd/paye-calc#29. This
|
|
20
|
+
* library only selects the basis.
|
|
17
21
|
*/
|
|
18
22
|
import { TakeHomePay, GrossAnnual, PensionBasis, PensionPercent, } from '@casomoltd/paye-calc';
|
|
19
23
|
import { yearlyAccrual } from './pension-projection.js';
|
package/dist/take-home.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"take-home.js","sourceRoot":"","sources":["../src/take-home.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"take-home.js","sourceRoot":"","sources":["../src/take-home.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,cAAc,GACf,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAetC;;;;;;;;GAQG;AACH,MAAM,UAAU,WAAW,CACzB,MAAc,EACd,WAAmB,EACnB,OAAgB,EAChB,SAAoB,EACpB,UAA8B,EAAE;IAEhC,MAAM,GAAG,GAAG,IAAI,WAAW,CACzB,OAAO,EAAE,SAAS,CACnB,CAAC;IACF,GAAG,CAAC,SA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J,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casomoltd/nhs-pay",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "NHS Agenda for Change pay scales, pension tiers, regions, and take-home calculator",
|
|
5
5
|
"homepage": "https://github.com/casomoltd/nhs-pay#readme",
|
|
6
6
|
"bugs": "https://github.com/casomoltd/nhs-pay/issues",
|