Fix crash when an invoice has no line items #413
bugboo wants to merge 2 commits into main from bugboo/fix-412
bugboo commented
Closes #412. export_invoice() divided by the line count, which is zero for empty invoices. Added a guard and a test that failed before this change.
Reproduced with: pytest tests/test_export.py::test_empty_invoice
- tests (3.12) · 2m 14s
- lint · passed on retry
- Review approved by @maya