[BTAPI-49] Apply prior-week carryover to weekly budget #57

Merged
chris merged 4 commits from feature/BTAPI-49 into main 2026-07-02 08:26:53 -06:00
Owner

Ticket

BTAPI-49 Apply previous week's balance carryover to current week's budget

Summary

  • In getBudgetForWeek, await the prior-week carryover once and add it to the base weeklyAmount before returning
  • The balance field continues to carry the raw carryover amount for the app's 'LAST WEEK' display
  • No app changes needed — the existing amount = weeklyAmount - spent computation becomes correct automatically
  • As a side-effect, removes a duplicate DB round-trip (carryover was previously fetched twice per request)
## Ticket [BTAPI-49](http://192.168.2.100:7123/home/browse/BTAPI-49/) Apply previous week's balance carryover to current week's budget ## Summary - In `getBudgetForWeek`, await the prior-week carryover once and add it to the base `weeklyAmount` before returning - The `balance` field continues to carry the raw carryover amount for the app's 'LAST WEEK' display - No app changes needed — the existing `amount = weeklyAmount - spent` computation becomes correct automatically - As a side-effect, removes a duplicate DB round-trip (carryover was previously fetched twice per request)
[BTAPI-49] Add prior-week carryover to weeklyAmount in GET /week.
All checks were successful
server / check (pull_request) Successful in 22s
e063c1f405
[BTAPI-49] Treat prior-week carryover as invisible transaction, not budget increase.
Some checks failed
app / check (pull_request) Failing after 19s
server / check (pull_request) Successful in 21s
3170e4ee1b
[BTAPI-49] Fall back to computing prior-week balance from transactions when snapshot absent.
Some checks failed
app / check (pull_request) Failing after 19s
server / check (pull_request) Successful in 20s
bc41a16607
BTAPI-49: Fix CI failure — apply Prettier formatting to transactions test
All checks were successful
app / check (pull_request) Successful in 20s
server / check (pull_request) Successful in 21s
plane-sync / sync (pull_request) Successful in 1s
cd2236d915
chris merged commit 30b24afa96 into main 2026-07-02 08:26:53 -06:00
chris deleted branch feature/BTAPI-49 2026-07-02 08:26:53 -06:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
chris/budget-tracker!57
No description provided.