Repository navigation
Conversation
Add a MIS.KPI spreadsheet function returning the value of a KPI of a MIS report template over a period, and a Spreadsheet button on MIS report instances creating a spreadsheet where every KPI cell is a live formula. Assisted-by: Claude Code
mileo
marked this pull request as ready for review
November 18, 2026 18:47
Member
Author
|
Note: in debug mode, the Spreadsheet button of the report preview fails because of a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New module bridging MIS Builder and
spreadsheet_oca. I could not find any previous attempt in the PRs or issues of both repositories.What it does
A
MIS.KPIspreadsheet function returns the value of a KPI of a MIS report template over any period:MIS.KPI(report, kpi, date_from, [date_to], [company_ids], [include_unposted], [subkpi])When
date_tois empty,date_fromcan be a whole period ("2026","Q1/2026","03/2026").A Spreadsheet button on MIS report instances (form and preview) creates a spreadsheet reproducing the report, where every KPI cell is a live formula.
Design
mis.report), not the instance. Report, companies, posted/unposted and base date are plain cells, so the spreadsheet no longer depends on the instance it was created from.spreadsheet(serverData.batch), and the server callsmis.report.evaluate()once per report, period, companies and sub-KPI, whatever the number of KPI cells.Limits (see ROADMAP)
MIS.KPIcan not reproduce (analytic filters, alternative move line sources, budgets) are exported as static values and flagged in their header.How to test
Install with demo data: the Spreadsheet demo P&L by month MIS report comes with a few journal entries of the last three months. Open it and click Spreadsheet.