[insight] Plans and statistics: category plans, categories of your own, spending, the month in numbers; v0.5.0 #7
Reference in New Issue
Block a user
Delete Branch "feature/plans-stats"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 1 of the plan for Categories, Statistics, Rewards and phone parity: the pure core for the Categories and Statistics screens. Design:
docs/04_plans_stats.md.What
category.planned { category, amount, from }: a monthly plan for a spending category from the month offrom(the 1st) on, until a later one replaces it; zero removes it. Not for income, transfers or uncategorised; 0 to 100 000 000 CZK.State::plan_for.category.created { category, label }: a category of your own.State::category_label,State::categories().fiscus-insight::spending: one definition of spending (money out of your own payments, transfers excluded, uncategorised counted), money in, andpermilleby the largest remainder so shares add up to exactly 1000.fiscus-insight::plan:month_plan(per category planned, spent, left, bar share, pace: Under / OnPace / Ahead >110 % / Over) andsuggest(average of the last three complete months since the first payment, rounded up to 100 CZK).fiscus-insight::stats:month_stats(top 7 slices + the rest, in, out, net, six months, same day last month, top 5 merchants by key, subscriptions' share).Self-review
Haler::sum,checked_add),Noneon overflow (tested with two near-i64::MINpayments). Ratios in i128, shares as whole thousandths. No float.todayand the month are parameters; no clock.share.rsand the app'soutgoingbuild onlypayment.shared, so plans and custom categories never reach a shared budget. A member postingcategory.plannedinto a group log only affects that group's own state, which no view reads plans from.