Commits
Marek Vsechovsky committed 54737b452c0
Session 144, Step 61: Add Aisman version number label to user popup menu - AIM-2819 Add Aisman version number label to user popup menu - AIM-2809 Fix InvoiceAmount and InvoiceItemQty using Aisman-set values instead of actual Paddle quantities for one-off items Outcome: ### Version label added Added a small faint version label (`v1.0.9742.7`) to the bottom right of both user popup menus (Dashboard and shared Layout), directly under the "Sign out" row. ### AIM-2809 fixes 1. **InvoiceItemUnitPrice for subscriptions now ex-tax:** Changed `PaddleWebhookController.EnsureInvoiceAsync` to use `tierItem.Subtotal` (ex-tax) instead of `paidTotal` (incl-tax) for the subscription tier's `InvoiceItemUnitPrice`. 2. **InvoiceItemQty update with Paddle API fallback:** The existing-items update block now falls back to `_paddle.GetTransactionItemsAsync` when `paddleItemQuantities` from webhook data is empty, and also updates `InvoiceItemUnitPrice` to the ex-tax DB value for consistency. 3. **PricingController no longer overwrites InvoiceAmount with incl-tax Paddle total:** Removed the `GetTransactionTotalAsync` call that set `invoice.InvoiceAmount` to the Paddle transaction total (which includes tax). The webhook now handles this correctly.