Skip to content

v3.1.0

Choose a tag to compare

@github-actions github-actions released this 22 Mar 21:07
· 6 commits to main since this release

🚀 v3.1.0 — Driver Report PDF, Fraction Fix & Editable Summary
✨ New Features

📄 Driver Report PDF
➤ New "Download Driver Report as PDF" button in the Reports tab
➤ Generates a per-load breakdown with columns:
• Date
• Load No.
• Trip
• Line Haul
• Other Credit
• Fraction %
• Other Debit
• Total

👨‍✈️🚛 Driver(s) & Truck(s) in Summary
➤ Summary section now lists all unique drivers and trucks in the filtered report

📝➡️📄 Editable Summary → PDF
➤ Any edits made to the summary text box (including custom lines) are now reflected in downloaded PDFs
➤ Both Financial Summary and Driver Report PDFs use the live text at download time

🛠️ Bug Fixes

🧮 Fraction Calculation Fix
➤ Fractions now calculated only on credits where Transaction == Full Payment
➤ Fixes previous issue where all credits were incorrectly included

📑 PDF Rendering Safety
➤ Special characters (&, <, >) are now properly escaped
➤ Prevents ReportLab PDF generation failures

⚙️ Internal Changes

🧩 Added helper functions in DimeViewModel:
➤ _xml_escape
➤ _render_text_to_story
➤ _summary_dict_to_text
➡️ Ensures consistent & safe PDF text rendering

🔧 Updated methods:
➤ export_summary_pdf
➤ export_driver_report_pdf
➡️ Now accept summary_text_content parameter for live user-edited text