monthlyEquivByPriceId keyed the map by the current price ids (fetched by lookup key), so a subscription on a rotated/archived price id matched no key and silently contributed 0 to MRR/CM (prod already spans 4 distinct active price ids). Fetch prices by product instead, which includes archived ids, and warn if any net-active sub still has an unmapped price so it can never be silent again. Also fix the yearly divide to round (was intdiv, always-down) and skip foreign-currency/one-off prices. |
||
|---|---|---|
| .. | ||
| .pest | ||
| Browser | ||
| Feature | ||
| Fixtures | ||
| Performance | ||
| Support | ||
| Unit | ||
| Pest.php | ||
| TestCase.php | ||
| bootstrap.php | ||