Repository navigation
v0.3.0
F&B Margin Kit 0.3.0 adds an offline dashboard for menu and category contribution reports.
Use --html to write a self-contained report.html alongside the existing JSON and Markdown. Open the file in a browser to view summary cards and channel comparisons, search menus, combine category and unit-margin filters, sort by contribution or sales quantity, and view unrounded calculation values. Korean labels include English field names. Tables support narrow screens and keyboard scrolling.
The dashboard separates contribution before additional channel and fixed costs, after channel costs and after a supplied fixed cost. It uses the input monetary unit and preserves the calculator's existing JSON and Markdown output. All report data and controls remain in the HTML file; no external fonts, scripts or requests are used. CSV names are escaped, and both inputs are protected from HTML report aliases.
The release contains an installable wheel, checksums, and a synthetic example HTML that can be opened directly. The example ZIP includes its input CSVs and JSON/Markdown reports for regeneration. The example's amounts come from illustrative data.
The release passed 59 unit tests on Python 3.10, 3.12 and 3.14, twelve legacy byte comparisons, and independent numeric/security probes. Browser checks covered search, filters, sorting, exact-value display, mobile layout, keyboard scrolling and absence of external requests. A print layout is included.