@casomoltd/nhs-pay 0.25.0 → 0.27.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/dist/additional-pension.js +1 -1
- package/dist/additional-pension.js.map +1 -1
- package/dist/factor-basis.d.ts +1 -10
- package/dist/factor-basis.js +1 -10
- package/dist/factor-basis.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/member-benefits.js +1 -1
- package/dist/member-benefits.js.map +1 -1
- package/dist/pension/ages.d.ts +72 -0
- package/dist/pension/ages.js +110 -0
- package/dist/pension/ages.js.map +1 -0
- package/dist/post.d.ts +10 -1
- package/dist/post.js +17 -2
- package/dist/post.js.map +1 -1
- package/dist/scales.d.ts +8 -17
- package/dist/scales.js +11 -20
- package/dist/scales.js.map +1 -1
- package/dist/sections/section-1995.js +2 -1
- package/dist/sections/section-1995.js.map +1 -1
- package/dist/sections/section-2008.js +2 -1
- package/dist/sections/section-2008.js.map +1 -1
- package/dist/sections/section-2015.js +1 -1
- package/dist/sections/section-2015.js.map +1 -1
- package/dist/sources.d.ts +7 -2
- package/dist/sources.js +13 -3
- package/dist/sources.js.map +1 -1
- package/dist/take-home.d.ts +16 -1
- package/dist/take-home.js +41 -22
- package/dist/take-home.js.map +1 -1
- package/dist/working-week.d.ts +0 -2
- package/dist/working-week.js +1 -1
- package/dist/working-week.js.map +1 -1
- package/package.json +3 -3
- package/dist/npa.d.ts +0 -28
- package/dist/npa.js +0 -60
- package/dist/npa.js.map +0 -1
package/dist/scales.d.ts
CHANGED
|
@@ -74,14 +74,6 @@ interface AfcScaleYear {
|
|
|
74
74
|
scales: Record<AfcBandId, SteppedPoint[]>;
|
|
75
75
|
}
|
|
76
76
|
export declare const NLW_HOURLY: Partial<Record<YearLabel, number>>;
|
|
77
|
-
/**
|
|
78
|
-
* Standard AfC working hours per year outside Scotland (≈ 1,955.4).
|
|
79
|
-
*
|
|
80
|
-
* @deprecated Use `hoursPerYear(afcWeeklyHours(year, nation))` from
|
|
81
|
-
* `working-week.ts`. This constant is the rest of the UK's week and is
|
|
82
|
-
* wrong for Scotland.
|
|
83
|
-
*/
|
|
84
|
-
export declare const AFC_HOURS_PER_YEAR: number;
|
|
85
77
|
/**
|
|
86
78
|
* Annualise an hourly rate at given weekly hours.
|
|
87
79
|
*
|
|
@@ -141,14 +133,14 @@ export declare function afcPayYears(nation: Nation): PayYear[];
|
|
|
141
133
|
*
|
|
142
134
|
* A person's salary comes from an Agenda for Change round; the tax, NI
|
|
143
135
|
* and pension tiers applied to it come from the tax year they are
|
|
144
|
-
* being paid IN. Those are different facts
|
|
145
|
-
* same year
|
|
146
|
-
*
|
|
136
|
+
* being paid IN. Those are different facts that normally name the
|
|
137
|
+
* same year, so one value serving both looks right until the day they
|
|
138
|
+
* diverge.
|
|
147
139
|
*
|
|
148
140
|
* They diverge in exactly one way. An AfC round is agreed and
|
|
149
141
|
* implemented by each nation separately, and a nation whose award is
|
|
150
|
-
* not yet funded keeps paying last year's scales into this tax year
|
|
151
|
-
*
|
|
142
|
+
* not yet funded keeps paying last year's scales into this tax year;
|
|
143
|
+
* this function says which nations are. Tax never waits: the thresholds
|
|
152
144
|
* change on 6 April whatever the employer has settled.
|
|
153
145
|
*
|
|
154
146
|
* So the legitimate values are:
|
|
@@ -163,10 +155,9 @@ export declare function afcPayYears(nation: Nation): PayYear[];
|
|
|
163
155
|
* the world: a lag of 2 means a whole round was never transcribed.
|
|
164
156
|
* {@link assertPayYearLagIsSane} is where that is enforced.
|
|
165
157
|
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
* Only distinct types would stop that.
|
|
158
|
+
* What this cannot catch is a pay year passed where a tax year was
|
|
159
|
+
* wanted: the values here would look perfectly legal. The distinct
|
|
160
|
+
* `PayYear` and `TaxYear` types are what stop that.
|
|
170
161
|
*/
|
|
171
162
|
export declare function payYearLag(nation: Nation): number;
|
|
172
163
|
/**
|
package/dist/scales.js
CHANGED
|
@@ -58,7 +58,7 @@ import { ScaleUnavailable, invariant } from './errors.js';
|
|
|
58
58
|
import { AFC_ENGLAND_SCALES_2025, AFC_ENGLAND_SCALES_2026, AFC_NI_2025, AFC_SCOTLAND, AFC_W_02_2025, AFC_W_02_2026, } from './sources.js';
|
|
59
59
|
import { NI_SCALES_2025_26, SCOTLAND_SCALES_2025_26, SCOTLAND_SCALES_2026_27, WALES_SCALES_2025_26, WALES_SCALES_2026_27, } from './afc-scales.js';
|
|
60
60
|
import { afcPoint } from './afc-scales.js';
|
|
61
|
-
import {
|
|
61
|
+
import { hoursPerYear } from './working-week.js';
|
|
62
62
|
// The band registry lives in its own module so the translation layer
|
|
63
63
|
// can name a band without importing this one — see `afc-band.ts`.
|
|
64
64
|
export { AFC_BANDS, AFC_BAND_IDS } from './afc-band.js';
|
|
@@ -104,7 +104,7 @@ const AFC_SCALES_2025_26 = {
|
|
|
104
104
|
// and the wage floor has compressed the two to the same cash
|
|
105
105
|
// figure — so the structure is published and the equality is
|
|
106
106
|
// the fact, not a reason to collapse it. Wales's Band 2 is the
|
|
107
|
-
// same shape and
|
|
107
|
+
// same shape and is modelled the same way.
|
|
108
108
|
'2': [
|
|
109
109
|
afcPoint(1, false, 24465),
|
|
110
110
|
afcPoint(3, true, 24465),
|
|
@@ -168,7 +168,7 @@ const AFC_SCALES_2026_27 = {
|
|
|
168
168
|
// and the wage floor has compressed the two to the same cash
|
|
169
169
|
// figure — so the structure is published and the equality is
|
|
170
170
|
// the fact, not a reason to collapse it. Wales's Band 2 is the
|
|
171
|
-
// same shape and
|
|
171
|
+
// same shape and is modelled the same way.
|
|
172
172
|
'2': [
|
|
173
173
|
afcPoint(1, false, 25272),
|
|
174
174
|
afcPoint(3, true, 25272),
|
|
@@ -307,14 +307,6 @@ export const NLW_HOURLY = {
|
|
|
307
307
|
[TAX_YEARS.Y2025_26]: 12.21,
|
|
308
308
|
[TAX_YEARS.Y2026_27]: 12.71,
|
|
309
309
|
};
|
|
310
|
-
/**
|
|
311
|
-
* Standard AfC working hours per year outside Scotland (≈ 1,955.4).
|
|
312
|
-
*
|
|
313
|
-
* @deprecated Use `hoursPerYear(afcWeeklyHours(year, nation))` from
|
|
314
|
-
* `working-week.ts`. This constant is the rest of the UK's week and is
|
|
315
|
-
* wrong for Scotland.
|
|
316
|
-
*/
|
|
317
|
-
export const AFC_HOURS_PER_YEAR = hoursPerYear(FULL_TIME_WEEK);
|
|
318
310
|
/**
|
|
319
311
|
* Annualise an hourly rate at given weekly hours.
|
|
320
312
|
*
|
|
@@ -494,14 +486,14 @@ export function afcPayYears(nation) {
|
|
|
494
486
|
*
|
|
495
487
|
* A person's salary comes from an Agenda for Change round; the tax, NI
|
|
496
488
|
* and pension tiers applied to it come from the tax year they are
|
|
497
|
-
* being paid IN. Those are different facts
|
|
498
|
-
* same year
|
|
499
|
-
*
|
|
489
|
+
* being paid IN. Those are different facts that normally name the
|
|
490
|
+
* same year, so one value serving both looks right until the day they
|
|
491
|
+
* diverge.
|
|
500
492
|
*
|
|
501
493
|
* They diverge in exactly one way. An AfC round is agreed and
|
|
502
494
|
* implemented by each nation separately, and a nation whose award is
|
|
503
|
-
* not yet funded keeps paying last year's scales into this tax year
|
|
504
|
-
*
|
|
495
|
+
* not yet funded keeps paying last year's scales into this tax year;
|
|
496
|
+
* this function says which nations are. Tax never waits: the thresholds
|
|
505
497
|
* change on 6 April whatever the employer has settled.
|
|
506
498
|
*
|
|
507
499
|
* So the legitimate values are:
|
|
@@ -516,10 +508,9 @@ export function afcPayYears(nation) {
|
|
|
516
508
|
* the world: a lag of 2 means a whole round was never transcribed.
|
|
517
509
|
* {@link assertPayYearLagIsSane} is where that is enforced.
|
|
518
510
|
*
|
|
519
|
-
*
|
|
520
|
-
*
|
|
521
|
-
*
|
|
522
|
-
* Only distinct types would stop that.
|
|
511
|
+
* What this cannot catch is a pay year passed where a tax year was
|
|
512
|
+
* wanted: the values here would look perfectly legal. The distinct
|
|
513
|
+
* `PayYear` and `TaxYear` types are what stop that.
|
|
523
514
|
*/
|
|
524
515
|
export function payYearLag(nation) {
|
|
525
516
|
const order = Object.values(TAX_YEARS);
|
package/dist/scales.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scales.js","sourceRoot":"","sources":["../src/scales.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAKH,OAAO,EACL,WAAW,EACX,SAAS,EACT,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,gBAAgB,EAAE,SAAS,EAAC,MAAM,aAAa,CAAC;AAExD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,GACd,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"scales.js","sourceRoot":"","sources":["../src/scales.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAKH,OAAO,EACL,WAAW,EACX,SAAS,EACT,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,gBAAgB,EAAE,SAAS,EAAC,MAAM,aAAa,CAAC;AAExD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,GACd,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,iB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, NOT_MODELLED } from '../errors.js';
|
|
8
|
-
import { FACTOR_APPLIES, FACTOR_DIRECTIONS, FACTOR_SOURCES,
|
|
8
|
+
import { FACTOR_APPLIES, FACTOR_DIRECTIONS, FACTOR_SOURCES, readFactor, } from '../factor-basis.js';
|
|
9
|
+
import { LEGACY_PENSION_AGES } from '../pension/ages.js';
|
|
9
10
|
/** The pension age the 1995 Section's reductions are measured from. */
|
|
10
11
|
const PENSION_AGE = LEGACY_PENSION_AGES.section1995;
|
|
11
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-1995.js","sourceRoot":"","sources":["../../src/sections/section-1995.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AACpC,OAAO,EAAC,aAAa,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAC,kBAAkB,EAAE,YAAY,EAAC,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"section-1995.js","sourceRoot":"","sources":["../../src/sections/section-1995.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AACpC,OAAO,EAAC,aAAa,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAC,kBAAkB,EAAE,YAAY,EAAC,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,UAAU,GAC9D,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAKvD,uEAAuE;AACvE,MAAM,WAAW,GAAG,mBAAmB,CAAC,WAAW,CAAC;AAEpD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,UAAU,CACxB,WAAiB,EACjB,OAAa,EACb,KAAW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|
import { BenefitNotModelled, NOT_MODELLED } from '../errors.js';
|
|
9
|
-
import { FACTOR_DIRECTIONS,
|
|
9
|
+
import { FACTOR_DIRECTIONS, readFactor } from '../factor-basis.js';
|
|
10
|
+
import { LEGACY_PENSION_AGES } from '../pension/ages.js';
|
|
10
11
|
/** The pension age the 2008 Section's factors are measured from. */
|
|
11
12
|
const PENSION_AGE = LEGACY_PENSION_AGES.section2008;
|
|
12
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-2008.js","sourceRoot":"","sources":["../../src/sections/section-2008.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AACpC,OAAO,EAAC,sBAAsB,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAEvE,OAAO,EAAC,kBAAkB,EAAE,YAAY,EAAC,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAC,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"section-2008.js","sourceRoot":"","sources":["../../src/sections/section-2008.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AACpC,OAAO,EAAC,sBAAsB,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAEvE,OAAO,EAAC,kBAAkB,EAAE,YAAY,EAAC,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAC,iBAAiB,EAAE,UAAU,EAAC,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAGvD,oEAAoE;AACpE,MAAM,WAAW,GAAG,mBAAmB,CAAC,WAAW,CAAC;AAEpD;;;;;;;;GAQG;AACH,MAAM,UAAU,UAAU,CACxB,WAAiB,EACjB,OAAa,EACb,KAAW;IAEX,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IACpD,IAAI,KAAK,GAAG,SAAS,IAAI,OAAO,GAAG,KAAK,EAAE,CAAC;QACzC,MAAM,IAAI,kBAAkB,CAC1B,YAAY,CAAC,mBAAmB,EAChC,gEAAgE,CACjE,CAAC;IACJ,CAAC;IACD,MAAM,KAAK,GAAgB;QACzB,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,KAAK,GAAG,SAAS;YAC1B,CAAC,CAAC,iBAAiB,CAAC,KAAK;YACzB,CAAC,CAAC,iBAAiB,CAAC,IAAI;KAC3B,CAAC;IACF,OAAO,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED;;6BAE6B;AAC7B,MAAM,CAAC,MAAM,UAAU,GAAqB;IAC1C,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,YAAY,CAAC,sBAAsB;IAC/C,UAAU,EAAE,WAAW;IACvB,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,sBAAsB;IAChC,aAAa,EAAE,UAAU;IACzB,gBAAgB,EAAE,IAAI;CACvB,CAAC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { npaDate } from '../dates.js';
|
|
7
7
|
import { FACTOR_APPLIES, FACTOR_DIRECTIONS, FACTOR_SOURCES, MEMBERS_NPA, readFactor, } from '../factor-basis.js';
|
|
8
|
-
import { normalPensionAge } from '../
|
|
8
|
+
import { normalPensionAge } from '../pension/ages.js';
|
|
9
9
|
import { atDrawing, buildLedger } from '../pension/ledger.js';
|
|
10
10
|
/**
|
|
11
11
|
* The factor for a benefit determined under the 2015 Section's rules,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-2015.js","sourceRoot":"","sources":["../../src/sections/section-2015.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AACpC,OAAO,EACL,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,GAC3E,M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E,OAAO;QACvB,MAAM;QACN,OAAO;QACP,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;YACjB,EAAE,EAAE,OAAO;YACX,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,KAAK,EAAE,MAAM,CAAC,MAAM,KAAK,cAAc,CAAC,KAAK;gBAC3C,CAAC,CAAC,EAAC,IAAI,EAAE,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAC;gBACzD,CAAC,CAAC,IAAI;SACT,CAAC;KACH,CAAC,CAAC;IACH,OAAO;QACL,MAAM,EAAE,IAAI,EAAE,MAAM;QACpB,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;KAC7C,CAAC;AACJ,CAAC"}
|
package/dist/sources.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* allowance — so a second copy of its url or issue date is a second
|
|
8
8
|
* copy that can fall out of step with the first.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* Four kinds live here and the difference is load-bearing:
|
|
11
11
|
*
|
|
12
12
|
* - **Award instruments** — what a nation ACCEPTED. A written
|
|
13
13
|
* ministerial statement, a gov.scot news page, a Welsh written
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
* - **Scale circulars** — what PUBLISHES the salary figures. Prints a
|
|
16
16
|
* pay table, often no percentage at all.
|
|
17
17
|
* - **Allowance letters** — what sets a cash allowance per session.
|
|
18
|
+
* - **Scheme statements** — what an issuer says of a scheme: a factsheet,
|
|
19
|
+
* or a government response, which says so where it cites no instrument.
|
|
18
20
|
*
|
|
19
21
|
* They diverge in every nation. England's 2026-27 medical award was
|
|
20
22
|
* enacted by HCWS1462 on parliament.uk while its salaries are printed
|
|
@@ -103,7 +105,7 @@ export declare const AFC_W_02_2026: DocumentSource;
|
|
|
103
105
|
* Wales applies to its lowest spine points.
|
|
104
106
|
*
|
|
105
107
|
* A LETTER that sets an allowance, not a circular that publishes a
|
|
106
|
-
* ladder — the third of `DocumentSource`'s
|
|
108
|
+
* ladder — the third of `DocumentSource`'s kinds. It carries
|
|
107
109
|
* the hourly floor in its Action paragraph and the annual floor in
|
|
108
110
|
* its own spine-point table, and neither derives from the other, so
|
|
109
111
|
* both are transcribed from it in `scales.ts`.
|
|
@@ -195,6 +197,9 @@ export declare const MD_W_01_2025: DocumentSource;
|
|
|
195
197
|
* source and expect an answer.
|
|
196
198
|
*/
|
|
197
199
|
export declare const HSC_TC8_05_2025: DocumentSource;
|
|
200
|
+
/** DHSC on who the 2028 rise in the minimum age reaches; archived as SA-59 in
|
|
201
|
+
* docs/source-archive.md. A petition response that cites no instrument. */
|
|
202
|
+
export declare const DHSC_PETITION_779519: DocumentSource;
|
|
198
203
|
/** The additional pension limit and unit; archived as SA-58 in
|
|
199
204
|
* docs/source-archive.md. */
|
|
200
205
|
export declare const AP_FACTSHEET_2026: DocumentSource;
|
package/dist/sources.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* allowance — so a second copy of its url or issue date is a second
|
|
8
8
|
* copy that can fall out of step with the first.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* Four kinds live here and the difference is load-bearing:
|
|
11
11
|
*
|
|
12
12
|
* - **Award instruments** — what a nation ACCEPTED. A written
|
|
13
13
|
* ministerial statement, a gov.scot news page, a Welsh written
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
* - **Scale circulars** — what PUBLISHES the salary figures. Prints a
|
|
16
16
|
* pay table, often no percentage at all.
|
|
17
17
|
* - **Allowance letters** — what sets a cash allowance per session.
|
|
18
|
+
* - **Scheme statements** — what an issuer says of a scheme: a factsheet,
|
|
19
|
+
* or a government response, which says so where it cites no instrument.
|
|
18
20
|
*
|
|
19
21
|
* They diverge in every nation. England's 2026-27 medical award was
|
|
20
22
|
* enacted by HCWS1462 on parliament.uk while its salaries are printed
|
|
@@ -207,7 +209,7 @@ export const AFC_W_02_2026 = new DocumentSource({
|
|
|
207
209
|
* Wales applies to its lowest spine points.
|
|
208
210
|
*
|
|
209
211
|
* A LETTER that sets an allowance, not a circular that publishes a
|
|
210
|
-
* ladder — the third of `DocumentSource`'s
|
|
212
|
+
* ladder — the third of `DocumentSource`'s kinds. It carries
|
|
211
213
|
* the hourly floor in its Action paragraph and the annual floor in
|
|
212
214
|
* its own spine-point table, and neither derives from the other, so
|
|
213
215
|
* both are transcribed from it in `scales.ts`.
|
|
@@ -393,7 +395,15 @@ export const HSC_TC8_05_2025 = new DocumentSource({
|
|
|
393
395
|
nextExpectedReason: 'the 2026-27 HSC(TC8) medical & dental pay circular, which has '
|
|
394
396
|
+ 'not been issued',
|
|
395
397
|
});
|
|
396
|
-
// ── Scheme
|
|
398
|
+
// ── Scheme statements ─────────────────────────────
|
|
399
|
+
/** DHSC on who the 2028 rise in the minimum age reaches; archived as SA-59 in
|
|
400
|
+
* docs/source-archive.md. A petition response that cites no instrument. */
|
|
401
|
+
export const DHSC_PETITION_779519 = new DocumentSource({
|
|
402
|
+
issuer: 'the Department of Health and Social Care',
|
|
403
|
+
reference: 'Government response to petition 779519',
|
|
404
|
+
url: 'https://petition.parliament.uk/petitions/779519?reveal_response=yes',
|
|
405
|
+
issued: isoDate('2026-10-19'),
|
|
406
|
+
});
|
|
397
407
|
/** The additional pension limit and unit; archived as SA-58 in
|
|
398
408
|
* docs/source-archive.md. */
|
|
399
409
|
export const AP_FACTSHEET_2026 = new DocumentSource({
|
package/dist/sources.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../src/sources.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../src/sources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,OAAO,EAAC,MAAM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GAAG,EAAE,0CAA0C;UAC3C,+BAA+B;IACnC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC;CAChC,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,cAAc,CAAC;IAC9C,MAAM,EAAE,+BAA+B;IACvC,SAAS,EAAE,2BAA2B;IACtC,GAAG,EAAE,0DAA0D;UAC3D,2DAA2D;UAC3D,uEAAuE;IAC3E,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC;IAC7B,mEAAmE;IACnE,mDAAmD;IACnD,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC;IACnC,kBAAkB,EAChB,gEAAgE;UAC9D,iBAAiB;CACxB,CAAC,CAAC;AAEH,qDAAqD;AAErD;4EAC4E;AAC5E,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,cAAc,CAAC;IACnD,MAAM,EAAE,0CAA0C;IAClD,SAAS,EAAE,wCAAwC;IACnD,GAAG,EAAE,qEAAqE;IAC1E,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC;CAChC,CAAC,CAAC;AAEH;8BAC8B;AAC9B,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,cAAc,CAAC;IAChD,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,oDAAoD;IAC/D,GAAG,EAAE,uDAAuD;UACxD,oDAAoD;UACpD,0BAA0B;IAC9B,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC;IAC7B,gEAAgE;IAChE,uBAAuB;IACvB,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC;CACtC,CAAC,CAAC"}
|
package/dist/take-home.d.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* library only selects the basis.
|
|
21
21
|
*/
|
|
22
22
|
import { TakeHomePay } from '@casomoltd/paye-calc';
|
|
23
|
-
import type { TaxYear, TaxRegion, StudentLoanPlan, TaxCode } from '@casomoltd/paye-calc';
|
|
23
|
+
import type { AnnualAllowance, TaxYear, TaxRegion, StudentLoanPlan, TaxCode } from '@casomoltd/paye-calc';
|
|
24
24
|
/**
|
|
25
25
|
* Generic PAYE deductions layered on the NHS salary — the paye-calc
|
|
26
26
|
* inputs a bare scale salary doesn't carry. Each is optional and
|
|
@@ -34,6 +34,10 @@ export interface NhsTakeHomeOptions {
|
|
|
34
34
|
readonly taxCode?: TaxCode | null;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
+
* The take-home pay of an NHS post. Its `annualAllowance()` has no
|
|
38
|
+
* scheme pension input; read the allowance through
|
|
39
|
+
* `nhsAnnualAllowance` (or `Post.annualAllowance`).
|
|
40
|
+
*
|
|
37
41
|
* @param salary Gross annual pay assessed for tax/NI (already
|
|
38
42
|
* FTE-adjusted and net of any salary sacrifice)
|
|
39
43
|
* @param pensionRate Decimal fraction (e.g. 0.098); 0 = opted out
|
|
@@ -43,3 +47,14 @@ export interface NhsTakeHomeOptions {
|
|
|
43
47
|
* @param options Student loans / tax-code override
|
|
44
48
|
*/
|
|
45
49
|
export declare function nhsTakeHome(salary: number, pensionRate: number, taxYear: TaxYear, taxRegion: TaxRegion, options?: NhsTakeHomeOptions): TakeHomePay;
|
|
50
|
+
/**
|
|
51
|
+
* The pension annual allowance an NHS member's year meets. The scheme
|
|
52
|
+
* is defined benefit, so the pension input is the growth in CARE
|
|
53
|
+
* benefits (paye-calc's DB multiple of the year's accrual), not the
|
|
54
|
+
* contribution paid;
|
|
55
|
+
* without it adjusted income omits the scheme and the taper never
|
|
56
|
+
* bites for high earners. An opted-out member (rate 0) has no input.
|
|
57
|
+
* Source: HMRC PTM053301 (DB pension input amount), the citation
|
|
58
|
+
* paye-calc's `DB_PENSION_INPUT_MULTIPLIER` carries.
|
|
59
|
+
*/
|
|
60
|
+
export declare function nhsAnnualAllowance(salary: number, pensionRate: number, taxYear: TaxYear, taxRegion: TaxRegion): AnnualAllowance;
|
package/dist/take-home.js
CHANGED
|
@@ -19,10 +19,16 @@
|
|
|
19
19
|
* rule to state and to cite: casomoltd/paye-calc#29. This
|
|
20
20
|
* library only selects the basis.
|
|
21
21
|
*/
|
|
22
|
-
import { TakeHomePay, GrossAnnual, PensionBasis, PensionPercent, } from '@casomoltd/paye-calc';
|
|
22
|
+
import { TakeHomePay, GrossAnnual, NO_PENSION, PensionBasis, PensionPercent, getTaxYearConfig, payAt, } from '@casomoltd/paye-calc';
|
|
23
23
|
import { yearlyAccrual } from './pension-projection.js';
|
|
24
24
|
import { invariant } from './errors.js';
|
|
25
|
+
/** A rate is a fraction here; paye-calc takes a pension per cent. */
|
|
26
|
+
const PER_CENT = 100;
|
|
25
27
|
/**
|
|
28
|
+
* The take-home pay of an NHS post. Its `annualAllowance()` has no
|
|
29
|
+
* scheme pension input; read the allowance through
|
|
30
|
+
* `nhsAnnualAllowance` (or `Post.annualAllowance`).
|
|
31
|
+
*
|
|
26
32
|
* @param salary Gross annual pay assessed for tax/NI (already
|
|
27
33
|
* FTE-adjusted and net of any salary sacrifice)
|
|
28
34
|
* @param pensionRate Decimal fraction (e.g. 0.098); 0 = opted out
|
|
@@ -35,25 +41,17 @@ export function nhsTakeHome(salary, pensionRate, taxYear, taxRegion, options = {
|
|
|
35
41
|
const thp = new TakeHomePay(taxYear, taxRegion);
|
|
36
42
|
thp.setSalary(GrossAnnual(salary));
|
|
37
43
|
// A positive rate is scheme membership (NET arrangement); zero is an
|
|
38
|
-
// opted-out member, so there's no pension
|
|
44
|
+
// opted-out member, so there's no pension at all — never a 0%
|
|
39
45
|
// Employer contribution.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
// Source: HMRC PTM044230 (pension input amount for DB schemes).
|
|
48
|
-
thp.setDbAnnualAccrual(yearlyAccrual(salary));
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
thp.setPensionBasis(PensionBasis.None);
|
|
52
|
-
}
|
|
53
|
-
// setStudentLoanPlans wants a mutable Set; the VO holds a
|
|
54
|
-
// ReadonlySet, so copy it at the boundary.
|
|
46
|
+
const isMember = pensionRate > 0;
|
|
47
|
+
thp.setPension(isMember
|
|
48
|
+
? {
|
|
49
|
+
basis: PensionBasis.Employer,
|
|
50
|
+
contribution: PensionPercent(pensionRate * PER_CENT),
|
|
51
|
+
}
|
|
52
|
+
: NO_PENSION);
|
|
55
53
|
if (options.studentLoans && options.studentLoans.size > 0) {
|
|
56
|
-
thp.setStudentLoanPlans(
|
|
54
|
+
thp.setStudentLoanPlans(options.studentLoans);
|
|
57
55
|
}
|
|
58
56
|
if (options.taxCode) {
|
|
59
57
|
thp.setTaxCode(options.taxCode);
|
|
@@ -63,14 +61,35 @@ export function nhsTakeHome(salary, pensionRate, taxYear, taxRegion, options = {
|
|
|
63
61
|
// ever changes when the pension is applied, the pension basis is
|
|
64
62
|
// wrong or paye-calc's model changed — fail loud here (this runs in
|
|
65
63
|
// every test and page) rather than silently overstating take-home.
|
|
66
|
-
if (
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
if (isMember) {
|
|
65
|
+
// The same inputs but the pension, so the pension alone is what
|
|
66
|
+
// the two sides differ by.
|
|
67
|
+
const inputs = {
|
|
68
|
+
config: getTaxYearConfig(taxYear, taxRegion),
|
|
69
|
+
pension: thp.pension,
|
|
70
|
+
studentLoans: thp.studentLoanPlans,
|
|
71
|
+
taxCode: options.taxCode ?? null,
|
|
72
|
+
};
|
|
73
|
+
invariant(payAt(salary, inputs).niBreakdown.total
|
|
74
|
+
=== payAt(salary, { ...inputs, pension: NO_PENSION }).niBreakdown.total, 'NHS pension is a net-pay arrangement: it must reduce income '
|
|
70
75
|
+ 'tax but not National Insurance (NI is assessed on full '
|
|
71
76
|
+ 'gross). NI changed when the pension was applied. '
|
|
72
77
|
+ 'See HMRC PTM044230.');
|
|
73
78
|
}
|
|
74
79
|
return thp;
|
|
75
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* The pension annual allowance an NHS member's year meets. The scheme
|
|
83
|
+
* is defined benefit, so the pension input is the growth in CARE
|
|
84
|
+
* benefits (paye-calc's DB multiple of the year's accrual), not the
|
|
85
|
+
* contribution paid;
|
|
86
|
+
* without it adjusted income omits the scheme and the taper never
|
|
87
|
+
* bites for high earners. An opted-out member (rate 0) has no input.
|
|
88
|
+
* Source: HMRC PTM053301 (DB pension input amount), the citation
|
|
89
|
+
* paye-calc's `DB_PENSION_INPUT_MULTIPLIER` carries.
|
|
90
|
+
*/
|
|
91
|
+
export function nhsAnnualAllowance(salary, pensionRate, taxYear, taxRegion) {
|
|
92
|
+
const isMember = pensionRate > 0;
|
|
93
|
+
return nhsTakeHome(salary, pensionRate, taxYear, taxRegion).annualAllowance(isMember ? { dbAnnualAccrual: yearlyAccrual(salary) } : {});
|
|
94
|
+
}
|
|
76
95
|
//# sourceMappingURL=take-home.js.map
|
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;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,cAAc,
|
|
1
|
+
{"version":3,"file":"take-home.js","sourceRoot":"","sources":["../src/take-home.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EACL,WAAW,EACX,WAAW,EACX,UAAU,EACV,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,KAAK,GACN,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,qEAAqE;AACrE,MAAM,QAAQ,GAAG,GAAG,CAAC;AAerB;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,WAAW,CACzB,MAAc,EACd,WAAmB,EACnB,OAAgB,EAChB,SAAoB,EACpB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AW,CAAC,KAAK,EACvE,8DAA8D;cAC1D,yDAAyD;cACzD,mDAAmD;cACnD,qBAAqB,CAC1B,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAAc,EACd,WAAmB,EACnB,OAAgB,EAChB,SAAoB;IAEpB,MAAM,QAAQ,GAAG,WAAW,GAAG,CAAC,CAAC;IACjC,OAAO,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,eAAe,CACzE,QAAQ,CAAC,CAAC,CAAC,EAAC,eAAe,EAAE,aAAa,CAAC,MAAM,CAAC,EAAC,CAAC,CAAC,CAAC,EAAE,CACzD,CAAC;AACJ,CAAC"}
|
package/dist/working-week.d.ts
CHANGED
|
@@ -18,8 +18,6 @@
|
|
|
18
18
|
* See docs/source-archive.md.
|
|
19
19
|
*/
|
|
20
20
|
import type { Nation, PayYear, TaxYear } from '@casomoltd/paye-calc';
|
|
21
|
-
/** The week everywhere but Scotland, every year this library covers. */
|
|
22
|
-
export declare const FULL_TIME_WEEK = 37.5;
|
|
23
21
|
/**
|
|
24
22
|
* The full-time AfC week a pay round's scale is built on: the week its
|
|
25
23
|
* circular divides by. A member paid on last year's round is on last
|
package/dist/working-week.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { NATION_KEYS } from '@casomoltd/paye-calc';
|
|
21
21
|
/** The week everywhere but Scotland, every year this library covers. */
|
|
22
|
-
|
|
22
|
+
const FULL_TIME_WEEK = 37.5;
|
|
23
23
|
/** Scotland's week, for the years a circular sets it. */
|
|
24
24
|
const SCOTLAND_WEEK = {
|
|
25
25
|
'2025-26': 37,
|
package/dist/working-week.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"working-week.js","sourceRoot":"","sources":["../src/working-week.ts"],"names":[],"mappings":"AAAA;;;;;;;;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HANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casomoltd/nhs-pay",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "NHS pay scales and take-home pay, and a member's NHS pension across the 1995, 2008 and 2015 Sections",
|
|
5
5
|
"homepage": "https://casomo.co.uk",
|
|
6
6
|
"bugs": "https://github.com/casomoltd/nhs-pay/issues",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"provenance": true
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@casomoltd/paye-calc": ">=0.
|
|
70
|
+
"@casomoltd/paye-calc": ">=0.10.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@casomoltd/paye-calc": "^0.
|
|
73
|
+
"@casomoltd/paye-calc": "^0.10.0",
|
|
74
74
|
"@casomoltd/tooling": "^0.37.0",
|
|
75
75
|
"@commitlint/cli": "^20.0.0",
|
|
76
76
|
"@js-temporal/polyfill": "^0.5.1",
|
package/dist/npa.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NHS 2015 scheme normal pension age.
|
|
3
|
-
*
|
|
4
|
-
* NPA = the member's State Pension age, with a floor of 65
|
|
5
|
-
* (NHSBSA 2015 Members' Guide V13, May 2024). The SPA timetable
|
|
6
|
-
* is legislated — Pensions Acts 1995/2007/2011/2014 — and
|
|
7
|
-
* reproduced in gov.uk's "State Pension age timetable"
|
|
8
|
-
* (last updated 15 May 2014; the legislated dates have not
|
|
9
|
-
* changed since — the 2023 SPA review left them as enacted).
|
|
10
|
-
*
|
|
11
|
-
* Whole years only. The Acts phase each rise through narrow
|
|
12
|
-
* transitional birth cohorts whose exact SPA is 65/66/67 plus
|
|
13
|
-
* some months; this function returns the NEXT whole year for
|
|
14
|
-
* those cohorts (66/67/68). Rounding up is member-conservative,
|
|
15
|
-
* in the same spirit as the ERF part-month round-up (GAD 2019
|
|
16
|
-
* guidance §2.3): a projection anchored on the later NPA can
|
|
17
|
-
* understate early-retirement pension by a few months' factor,
|
|
18
|
-
* never overstate it. Callers needing month-exact SPA for the
|
|
19
|
-
* transitional cohorts need the per-cohort tables in the Acts,
|
|
20
|
-
* which this library deliberately does not transcribe.
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* Normal pension age for a 2015-scheme member born on
|
|
24
|
-
* `dateOfBirth`, in whole years (see the module header for the
|
|
25
|
-
* transitional-cohort rounding). The result is what
|
|
26
|
-
* `projectPension` expects as its `npa` input.
|
|
27
|
-
*/
|
|
28
|
-
export declare function normalPensionAge(dateOfBirth: Date): number;
|