Commits
Marek Vsechovsky committed d3d7243bb98
Session 144, Step 62: Add invoice detail overlay in affiliate portal My ledger - AIM-2774 Add invoice detail overlay in affiliate portal My ledger - AIM-2809 Fix InvoiceAmount and InvoiceItemQty using Aisman-set values instead of actual Paddle quantities for one-off items - AIM-2820 Fix affiliate reward calculation to use tax-exclusive originalPrice Outcome: ### AIM-2774 — Invoice overlay now renders as fixed overlay Moved `.aim-invoice-overlay` SCSS styles from inside `.aim-affiliate-page` to root level so they match the `<body>`-appended overlay div. ### AIM-2809 — Defensive guards for InvoiceItemQty Added guards in `PaddleWebhookController` and `PricingController` to prevent `InvoiceItemQty` from being stored as 0. Includes warning logs with full diagnostic context (feature ID, paddle price ID, available quantity keys) to help identify the root cause on next test. ### AIM-2820 — Affiliate reward formula fixed Changed `CalculateReward` to accept separate `discountedPrice` (tax-exclusive) and `feeBaseAmount` (tax-inclusive) parameters, eliminating the tax-inclusive/tax-exclusive mismatch that inflated the reward by ~$5.