@casomoltd/nhs-pay 0.4.8 → 0.4.10

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/take-home.js CHANGED
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import { TakeHomePay, GrossAnnual, PensionBasis, PensionPercent, TAX_REGIONS, } from '@casomoltd/paye-calc';
7
7
  import { AFC_CURRENT_YEAR } from './bands.js';
8
+ import { yearlyAccrual } from './pension-projection.js';
8
9
  /**
9
10
  * @param salary Gross annual salary
10
11
  * @param pensionRate Decimal fraction (e.g. 0.098)
@@ -14,6 +15,12 @@ export function nhsTakeHome(salary, pensionRate, taxYear = AFC_CURRENT_YEAR, tax
14
15
  thp.setSalary(GrossAnnual(salary));
15
16
  thp.setPensionBasis(PensionBasis.Employer);
16
17
  thp.setPension(PensionPercent(pensionRate * 100));
18
+ // DB pension input (16 × accrual) drives the annual-allowance
19
+ // taper; without it adjusted income omits the scheme accrual and
20
+ // the taper never bites for high earners. Skip when opted out.
21
+ if (pensionRate > 0) {
22
+ thp.setDbAnnualAccrual(yearlyAccrual(salary));
23
+ }
17
24
  return thp;
18
25
  }
19
26
  //# sourceMappingURL=take-home.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"take-home.js","sourceRoot":"","sources":["../src/take-home.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,cAAc,EACd,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAK9B,OAAO,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAE5C;;;GAGG;AACH,MAAM,UAAU,WAAW,CACzB,MAAc,EACd,WAAmB,EACnB,UAAmB,gBAAgB,EACnC,YAAuB,WAAW,CAAC,GAAG;IAEtC,MAAM,GAAG,GAAG,IAAI,WAAW,CACzB,OAAO,EAAE,SAAS,CACnB,CAAC;IACF,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;IACnC,GAAG,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC3C,GAAG,CAAC,UAAU,CACZ,cAAc,CAAC,WAAW,GAAG,GAAG,CAAC,CAClC,CAAC;IACF,OAAO,GAAG,CAAC;AACb,CAAC"}
1
+ {"version":3,"file":"take-home.js","sourceRoot":"","sources":["../src/take-home.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,cAAc,EACd,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAK9B,OAAO,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAEtD;;;GAGG;AACH,MAAM,UAAU,WAAW,CACzB,MAAc,EACd,WAAmB,EACnB,UAAmB,gBAAgB,EACnC,YAAuB,WAAW,CAAC,GAAG;IAEtC,MAAM,GAAG,GAAG,IAAI,WAAW,CACzB,OAAO,EAAE,SAAS,CACnB,CAAC;IACF,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;IACnC,GAAG,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC3C,GAAG,CAAC,UAAU,CACZ,cAAc,CAAC,WAAW,GAAG,GAAG,CAAC,CAClC,CAAC;IACF,8DAA8D;IAC9D,iEAAiE;IACjE,+DAA+D;IAC/D,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC;QACpB,GAAG,CAAC,kBAAkB,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IAChD,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.4.8",
3
+ "version": "0.4.10",
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",
@@ -52,10 +52,10 @@
52
52
  "provenance": true
53
53
  },
54
54
  "peerDependencies": {
55
- "@casomoltd/paye-calc": ">=0.5.0"
55
+ "@casomoltd/paye-calc": ">=0.5.9"
56
56
  },
57
57
  "devDependencies": {
58
- "@casomoltd/paye-calc": "^0.5.6",
58
+ "@casomoltd/paye-calc": "^0.5.11",
59
59
  "@casomoltd/tooling": "git+https://github.com/casomoltd/tooling.git#semver:^0.10.0",
60
60
  "@commitlint/cli": "^20.0.0",
61
61
  "@types/node": "^25.5.0",