feat: support unassigned purchases and allocation status
Continuous Integration / lint-and-test (push) Successful in 13s
Continuous Integration / docker-build-and-push (push) Successful in 35s

Allow month-only purchases to start finance plans. Keep unbudgeted posts distinct from explicit zero rules in overspend reporting.
This commit is contained in:
Lucas Winther committed 2026-09-30 13:10:10 +02:00
1 parent c1446db39f
commit b0e8145d2e
31 files changed
+469 -80

No files matched your search

+2 -1
View File
@@ -169,7 +169,7 @@ export interface RecurringCost {
endedFrom?: IsoDate;
recurrence: Recurrence;
anchoring: Anchoring;
/** Same shape and same invariant as Purchase: exactly one absorbsRemainder. */
/** Bills require exactly one remainder-absorbing destination. */
splitMode: "percent" | "fixed";
splits: Split[];
}
@@ -183,6 +183,7 @@ export interface Purchase {
/** In the purchase's own currency. */
total: Money;
splitMode: "percent" | "fixed";
/** Empty means spent in the month without charging any post. */
splits: Split[];
/** null means the whole total is charged in the month of `date`. */
schedule: Schedule | null;