Skip to main content

Module tax_schema

Module tax_schema 

Source

Structs§

ClearingResult
The result of clearing a batch across jurisdictions: per-jurisdiction net liabilities plus the grand net.
JurisdictionLiability
Net cleared liability for one jurisdiction.
TaxClearingHouse
Multi-jurisdiction “Information Banking” tax clearing house.
TaxLineItem
A single transaction line to clear — typically projected from a transaction Quin (jurisdiction, category, amount), so clearing happens “at the nquin level” without mutating the immutable graph.
TaxRule
TaxRuleSchema

Functions§

compute_withholding_cents_bankers
Zero-heap integer minor-unit (i64) & basis-point (u32) tax withholding calculation using banker’s rounding (AGENTS.md §0-A).
div_round_bankers
Defines modular tax and jurisdictional rulesets to be loaded into the Webizen VM. These rules are applied to the immutable Quins to compute dynamic, mutable tax liabilities without polluting the underlying graph. Integer division with banker’s rounding (round half to even) (AGENTS.md §0-A).
split_gross_net_tax_cents_bankers
Split gross_cents into (net_cents, withheld_tax_cents) conserving net + tax == gross.