Skip to content

fix(corporations): size NPP budgets from current funded accounts - #7940

Merged
Egg3901 merged 1 commit into
developmentfrom
keir/ticket-1940
Dec 2, 2026
Merged

Egg3901 merged 1 commit into
developmentfrom
keir/ticket-1940

Conversation

@Egg3901

@Egg3901 Egg3901 commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Funded corporate accounts are computed before NPP decisions, but the sector documents are written afterward. Use the current corporate revenue and pre-tax income for budget sizing so stale or inflated sector values cannot create oversized budgets. Apply the existing debt-service adjustment and budget bands to the current accounts. Legacy turn paths retain their existing inputs. This reuses the already computed accounting snapshot without another database read.

Regression coverage exercises the shared decision path with inflated sector revenue and confirms the budget and its reported share use the funded accounts.

Tests: Regression failed before the fix (30,000,000 vs 720,000), then passed. Four focused NPP test files passed (23 tests); ESLint and Prettier passed on changed files.

Funded corporate accounts are computed before NPP decisions, but the sector documents are written afterward. Use the current corporate revenue and pre-tax income for budget sizing so stale or inflated sector values cannot create oversized budgets. Apply the existing debt-service adjustment and budget bands to the current accounts. Legacy turn paths retain their existing inputs. This reuses the already computed accounting snapshot without another database read.

Regression coverage exercises the shared decision path with inflated sector revenue and confirms the budget and its reported share use the funded accounts.

Tests: Regression failed before the fix (30,000,000 vs 720,000), then passed. Four focused NPP test files passed (23 tests); ESLint and Prettier passed on changed files.
@Egg3901
Egg3901 merged commit 2e4def6 into development Dec 2, 2026
21 checks passed
@Egg3901
Egg3901 deleted the keir/ticket-1940 branch December 2, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant