-
Mahmoud Aglan authored
Pro-rata allocation from invoice_items where itemable_type = Product. Shows total collected from products, % of total revenue, units sold, and per-product breakdown with actual collections (not invoice totals). Handles bundled invoices and installment payments correctly. Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
ea44efee