Fringg
f9f07f360c
fix: enforce tariff device_price and max_device_limit across all purchase paths
...
The miniapp, legacy cabinet endpoint, auto-purchase service, and Telegram bot
handlers were using only global settings (PRICE_PER_DEVICE, MAX_DEVICES_LIMIT)
for device purchases, completely ignoring tariff-level device_price_kopeks and
max_device_limit. This allowed users to buy devices when tariff price was 0
(should be blocked) and exceed the tariff's max device limit.
Fixed in all 4 code paths:
- miniapp _build_subscription_settings + update_subscription_devices_endpoint
- cabinet legacy POST /devices (+ added subscription status check, RemnaWave sync)
- subscription_auto_purchase_service._auto_add_devices
- telegram bot handlers confirm_change_devices, execute_change_devices, confirm_add_devices
2026-03-08 23:08:32 +03:00
..
2026-02-16 09:18:12 +03:00
2026-02-17 04:45:40 +03:00
2026-03-08 21:36:17 +03:00
2026-01-24 17:45:27 +03:00
2026-03-06 01:42:09 +03:00
2026-03-07 04:48:52 +03:00
2026-03-05 08:32:50 +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-02-23 21:29:54 +03:00
2026-02-16 09:18:12 +03:00
2026-02-23 18:02:25 +03:00
2026-02-25 00:24:31 +03:00
2026-02-16 09:18:12 +03:00
2026-02-24 02:50:31 +03:00
2026-03-05 10:15:25 +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-02-16 09:18:12 +03:00
2026-02-27 01:00:50 +03:00
2026-03-08 12:47:25 +03:00
2026-02-16 09:18:12 +03:00
2026-02-16 09:18:12 +03:00
2026-01-24 17:45:27 +03:00
2026-02-17 07:52:26 +03:00
2026-01-24 17:45:27 +03:00
2026-03-07 05:44:19 +03:00
2026-02-16 09:18:12 +03:00
2026-02-17 04:45:40 +03:00
2026-02-17 04:45:40 +03:00
2026-03-07 16:40:35 +03:00
2026-02-16 09:18:12 +03:00
2026-02-17 04:45:40 +03:00
2026-02-27 04:02:17 +03:00
2026-03-02 20:34:57 +03:00
2026-03-07 00:04:32 +03:00
2026-03-07 03:50:15 +03:00
2026-03-06 04:20:41 +03:00
2026-03-07 06:05:03 +03:00
2026-02-17 04:45:40 +03:00
2026-02-17 04:45:40 +03:00
2026-02-16 09:18:12 +03:00
2026-02-16 09:18:12 +03:00
2026-02-17 04:45:40 +03:00
2026-02-17 04:45:40 +03:00
2026-03-06 01:33:18 +03:00
2026-02-16 09:18:12 +03:00
2026-03-06 07:02:42 +03:00
2026-03-06 01:33:06 +03:00
2026-03-06 01:33:06 +03:00
2026-03-02 04:35:16 +03:00
2026-03-02 02:25:32 +03:00
2026-03-07 05:44:19 +03:00
2026-02-17 04:45:40 +03:00
2026-03-04 05:46:37 +03:00
2026-02-17 04:45:40 +03:00
2026-02-16 09:18:12 +03:00
2026-02-25 13:48:39 +03:00
2026-03-08 23:08:32 +03:00
2026-02-16 09:18:12 +03:00
2026-03-05 06:29:34 +03:00
2026-03-05 06:29:34 +03:00
2026-03-07 20:39:04 +03:00
2026-02-16 18:22:44 +03:00
2026-03-07 02:25:54 +03:00
2026-02-17 07:52:26 +03:00
2026-03-05 10:15:32 +03:00
2026-03-01 23:09:49 +03:00
2026-02-16 09:18:12 +03:00
2026-02-25 11:53:49 +03:00
2026-02-17 04:45:40 +03:00
2026-03-08 14:17:44 +03:00
2026-02-18 08:11:33 +03:00
2026-02-16 09:18:12 +03:00
2026-02-27 00:53:46 +03:00
2026-03-06 07:02:42 +03:00