<h2>Invoice Totals Diagnostic for: ilrine</h2><h3>1. ALL Invoices (no filters)</h3><pre>Count: 149
Total HT: 7,714,929.54
Total TTC: 9,257,915.44</pre><h3>2. Invoices with entity = 1</h3><pre>Count: 149
Total HT: 7,714,929.54
Total TTC: 9,257,915.44</pre><h3>3. Invoices with entity = 1 AND fk_statut > 0</h3><pre>Count: 149
Total HT: 7,714,929.54
Total TTC: 9,257,915.44</pre><h3>4. Breakdown by Status (entity = 1)</h3><pre>Status meanings: 0=Draft, 1=Validated, 2=Paid, 3=Abandoned

Status 1: Count=91, HT=3,860,630.49, TTC=4,632,756.58
Status 2: Count=58, HT=3,854,299.05, TTC=4,625,158.86
</pre><h3>5. Breakdown by Entity</h3><pre>Entity 1: Count=149, HT=7,714,929.54, TTC=9,257,915.44
</pre><h3>6. Breakdown by Client Type (entity=1, status>0)</h3><pre>Client types: 0=Not, 1=Client, 2=Prospect, 3=Client+Prospect

Client type 1: Count=149, HT=7,714,929.54, TTC=9,257,915.44
</pre><h3>7. CURRENT APP FILTER (entity=1, status>0, client=1|3)</h3><pre>Count: 149
Total HT: 7,714,929.54
Total TTC: 9,257,915.44</pre><h3>8. DIFFERENCE (All vs App Filter)</h3><pre>Missing HT: 0.00
Missing TTC: 0.00
</pre>