The importer expands only the refund, which names no customer, so refunds were stored without customer_id/email and never netted against the buyer in customerLedgerTotals / ledgerAmountByCustomer. The row builder now copies the buyer from the ledger's charge row of the same payment (payment intent or charge id). Fills nulls only; a later import heals existing rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| LedgerMetricsTest.php | ||
| LedgerTaxTest.php | ||
| PaypalLedgerTest.php | ||