Skip to content

Convert supply status report from mPDF to Excel#1659

Open
lacatoire wants to merge 1 commit intoopendcim:masterfrom
lacatoire:fix/1375-supply-status-report-excel
Open

Convert supply status report from mPDF to Excel#1659
lacatoire wants to merge 1 commit intoopendcim:masterfrom
lacatoire:fix/1375-supply-status-report-excel

Conversation

@lacatoire
Copy link

@lacatoire lacatoire commented Feb 10, 2026

Summary

  • Replaced the broken mPDF-based supply status report with PhpSpreadsheet (Excel output)
  • The report was throwing "Class mPDF not found" because the mPDF library is no longer available
  • Uses PhpSpreadsheet which is already a project dependency used by other reports
  • Added red highlighting for supplies that are below their minimum quantity threshold
  • Added Location and Location Count columns for per-bin breakdown

Fixes #1375

The report was broken because the mPDF class was not found. Replaced
with PhpSpreadsheet (already a project dependency) to generate an Excel
file. Also added red highlighting for supplies below minimum quantity.

Fixes opendcim#1375
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Convert the report_supply_status.php report from mPDF to Excel

1 participant