code wiki / (root) / nx_bills.nx

nx_bills.nx

buildroot/runtime/nx_bills.nx

2631 B62 linesdepth 3pulls 3 transitivereach 14 importersview sourcekind librarytopic bills
docsdependenciesstructsconstsfunctions

about

nx_bills.nx -- R1 of THE NISHI SITUATION-MANAGEMENT arc: the recurring BILLS / OBLIGATIONS register (insurance, mortgage, HOA, utilities, ...). The ledger tracks what HAPPENED; this tracks what is COMMITTED and what is DUE. Exact no-float (nx_money): a bill carries an amount (cents), a cadence in months (1=monthly, 3=quarterly, 6=semiannual, 12=annual), a due day-of-month, a category code, and a paid-this- period flag. Computes the true MONTHLY obligation (cadence-normalized), per-category totals, what is DUE SOON, and what is OVERDUE -- so a person sees their whole picture and never misses a bill. Data-driven, no hardware writes. license_tier: ORIGINAL

dependencies 2 imports · 8 importers

nx_syscalls.nx nx_money.nx nx_bills.nx nx_bills_entry.nx nx_bills_entry_gate.nx nx_bills_gate.nx nx_bills_store.nx nx_bills_store_gate.nx nx_climbout_real.nx nx_climbout_real_gate.nx nx_finance_web.nx

imports: nx_syscalls.nxnx_money.nx

imported by: nx_bills_entry.nxnx_bills_entry_gate.nxnx_bills_gate.nxnx_bills_store.nxnx_bills_store_gate.nxnx_climbout_real.nxnx_climbout_real_gate.nxnx_finance_web.nx

structs

none

consts

12const BL_HOUSING: i64 = 0
13const BL_INSURANCE: i64 = 1
14const BL_UTILITY: i64 = 2
15const BL_DEBT: i64 = 3
16const BL_OTHER: i64 = 4

functions

19func bl_monthly(amount: i64, cadence_months: i64) -> i64
25func bl_monthly_total(amounts: *i64, cadences: *i64, n: i64) -> i64
33func bl_category_monthly(amounts: *i64, cadences: *i64, cats: *i64, n: i64, target: i64) -> i64
called by 2: mainmain calls 2: mny_addbl_monthly
42func bl_due_soon(due_days: *i64, today: i64, window: i64, n: i64, out_idx: *i64) -> i64
called by 1: main
54func bl_overdue(due_days: *i64, paid: *i64, today: i64, n: i64, out_idx: *i64) -> i64