Repository navigation
v3.1.0
🚀 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
👨
➤ 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