Fringg
4ab5928b61
fix: promo group discount applied to restricted tariffs in autopay
...
The pricing engine applied promo group discounts unconditionally,
without checking if the tariff is available for the user's promo group.
In autopay: user with VIP group (60% discount, restricted to Premium
tariff) would get 60% off when auto-renewing a Basic tariff that their
group should not cover.
Fix: in _calculate_tariff_core, check tariff.is_available_for_promo_group
before applying group discounts. If tariff is not available for the
user's promo group, the discount is zeroed — subscription renews at
full price. Protects ALL pricing paths (autopay, recurrent, manual).
2026-04-29 07:09:55 +03:00
..
2026-03-25 11:47:02 +03:00
2026-03-23 18:37:17 +03:00
2026-04-23 04:36:56 +03:00
2026-01-24 17:45:27 +03:00
2026-03-29 06:49:13 +03:00
2026-04-29 06:58:57 +03:00
2026-04-18 00:02:49 +03:00
2026-04-26 19:39:09 +03:00
2026-02-16 09:18:12 +03:00
2026-04-08 18:33:17 +03:00
2026-03-26 10:34:14 +03:00
2026-04-10 16:05:43 +03:00
2026-02-16 09:18:12 +03:00
2026-04-21 08:01:28 +03:00
2026-03-23 05:54:26 +03:00
2026-02-16 09:18:12 +03:00
2026-02-24 02:50:31 +03:00
2026-04-18 00:59:09 +03:00
2026-02-16 09:18:12 +03:00
2026-02-17 04:45:40 +03:00
2026-02-16 09:18:12 +03:00
2026-03-23 18:45:46 +03:00
2026-04-24 16:59:27 +03:00
2026-04-02 06:47:57 +03:00
2026-03-11 01:22:02 +03:00
2026-01-24 17:45:27 +03:00
2026-03-18 23:16:54 +03:00
2026-01-24 17:45:27 +03:00
2026-04-29 05:47:56 +03:00
2026-02-16 09:18:12 +03:00
2026-04-13 14:42:06 +03:00
2026-03-21 04:27:15 +03:00
2026-03-23 15:40:16 +03:00
2026-04-03 20:50:13 +03:00
2026-02-16 09:18:12 +03:00
2026-04-23 04:36:56 +03:00
2026-02-17 04:45:40 +03:00
2026-02-27 04:02:17 +03:00
2026-04-18 00:50:23 +03:00
2026-04-23 04:36:56 +03:00
2026-04-23 04:36:56 +03:00
2026-04-23 04:36:56 +03:00
2026-04-23 04:36:56 +03:00
2026-04-16 05:36:48 +03:00
2026-03-21 01:09:13 +03:00
2026-04-10 15:13:59 +03:00
2026-04-24 18:13:48 +03:00
2026-02-17 04:45:40 +03:00
2026-03-23 08:06:15 +03:00
2026-04-29 07:09:55 +03:00
2026-02-16 09:18:12 +03:00
2026-03-21 02:49:37 +03:00
2026-04-10 15:13:59 +03:00
2026-04-21 08:01:28 +03:00
2026-02-16 09:18:12 +03:00
2026-03-22 10:51:26 +03:00
2026-03-28 19:12:34 +03:00
2026-04-29 06:58:57 +03:00
2026-03-06 01:33:06 +03:00
2026-03-29 04:59:23 +03:00
2026-03-23 08:06:15 +03:00
2026-04-10 15:13:59 +03:00
2026-04-10 15:13:59 +03:00
2026-04-29 06:48:30 +03:00
2026-02-17 04:45:40 +03:00
2026-04-21 08:05:11 +03:00
2026-03-21 07:01:22 +03:00
2026-03-18 18:20:50 +03:00
2026-04-16 06:03:33 +03:00
2026-04-22 05:57:46 +03:00
2026-02-16 09:18:12 +03:00
2026-03-18 03:49:19 +03:00
2026-03-18 23:16:54 +03:00
2026-04-10 15:13:59 +03:00
2026-02-16 09:18:12 +03:00
2026-04-15 13:14:10 +03:00
2026-04-22 05:12:27 +03:00
2026-04-10 10:34:56 +03:00
2026-02-16 18:22:44 +03:00
2026-04-26 19:54:33 +03:00
2026-03-23 08:06:15 +03:00
2026-03-05 10:15:32 +03:00
2026-03-17 12:43:04 +03:00
2026-03-26 10:34:14 +03:00
2026-04-10 15:13:59 +03:00
2026-02-17 04:45:40 +03:00
2026-03-12 19:26:36 +03:00
2026-02-18 08:11:33 +03:00
2026-03-17 21:56:52 +03:00
2026-02-16 09:18:12 +03:00
2026-03-26 08:26:09 +03:00
2026-04-22 05:57:46 +03:00
2026-03-16 03:10:22 +03:00