Commit Graph

127 Commits

Author SHA1 Message Date
c37b0ed4b2 * Updated field naming in some serializers
* Admin tweaks
* Settings editing only for admin
2024-05-30 21:02:07 +04:00
8fb4e461e9 * SimpleRouter for non-debug environment 2024-05-30 20:59:46 +04:00
afc07037f6 * Show non-managers only their own orders
* Payment methods are editable only by admin
* Allow customers to edit some set of order fields
2024-05-26 16:24:04 +04:00
d07537cca3 + ChecklistListSerializer with smaller set of fields in /checklist/ 2024-05-26 16:21:44 +04:00
5a2216f0c4 + UserSimpleSerializer with smaller set of fields for Checklist.customer field in /checklist/ 2024-05-26 16:21:44 +04:00
8b6a5ca95c * Forbidden exception when failing to cancel the order 2024-05-26 16:21:44 +04:00
d88eeb790a + DateFromToRangeFilter with _from / _to suffixes 2024-05-26 16:17:30 +04:00
e5f56c10d0 * Date range filters for Checklist: created_at & status_updated_at 2024-05-26 03:13:13 +04:00
0ff18ef891 + BonusProgramLevel
* Moved Bonus models to separate app
2024-05-26 02:40:04 +04:00
92c2f53e65 * Reverted endpoint for PaymentMethod back to /payment 2024-05-26 02:33:47 +04:00
2397433772 * Moved GlobalSettings to core app 2024-05-25 03:21:59 +04:00
7fe327acd2 * Query optimization
* Cleanup
2024-05-24 02:22:04 +04:00
00686e9dc4 + BonusProgramConfig
* Moved GlobalSettings to core app
* Moved bonus program logic from User to BonusProgram class
* Worked on error handling a bit
2024-05-24 02:19:00 +04:00
c47864106e + CDEK webhook for instant status updates 2024-05-24 02:08:03 +04:00
46238cab4b + Filter orders by last N symbols of poizon_tracking 2024-05-22 22:32:00 +04:00
9731181ce2 * Checklist.bonus_used as an absolute value 2024-05-21 01:15:55 +04:00
c56186f2a1 * Cache GlobalSetting, again 2024-05-21 01:06:51 +04:00
3eec959881 * Cleanup & optimizations 2024-05-21 01:05:55 +04:00
85b472ddee * Cleanup in PaymentMethodAPI 2024-05-20 23:55:04 +04:00
a95ff1d738 * Cleanup 2024-05-20 23:09:49 +04:00
e51d05cb3d * Renamed fields in PromocodeSerializer 2024-05-20 23:08:30 +04:00
285b9decd9 + PriceField 2024-05-20 23:08:11 +04:00
eb4b29dfdf - DISABLE_PERMISSIONS 2024-05-20 23:05:27 +04:00
e571cf9597 + More bonus validation
+ Bonus transaction & order cancellation
+ Spend bonus via API
+ New status for order: DELETED
* Fixed bug with not actual bonus balance returned
* Order bonus can be added in several statuses
* Fixed TG templates a bit
2024-05-20 21:46:24 +04:00
fe24802831 + Bonus system (TODO: spend bonuses)
+ Telegram bot: sign up, sign in, notifications

+ Anonymous users can't see yuan_rate_commission
* Only logged in customers can create/update orders
* Customer info migrated to separate User model
* Renamed legacy fields in serializers
* Cleanup in API classes
2024-04-27 21:29:50 +04:00
65892e03e4 + CDEK API calculator/tarifflist endpoint 2024-01-03 16:10:23 +04:00
44722e4fcb * Disable in-memory cache GlobalSettings 2023-12-22 00:18:03 +04:00
180d1000d5 * Better logs in check_cdek_status() task 2023-12-07 07:44:20 +04:00
c0f17df7a6 * Update yuan rate via Celery task 2023-12-07 07:07:41 +04:00
9d7e45cd65 + Celery
+ Update CDEK status in background
2023-12-02 17:11:08 +04:00
e5e93ab6d5 * Renamed GlobalSettings.get_yuan_rate -> full_yuan_rate property
* In GlobalSettingsSerializer show full yuan rate
2023-11-24 17:58:42 +04:00
46de21309f * For anonymous users, show only available gifts 2023-11-23 03:55:58 +04:00
c6d8bb0349 * Null-check for gifts 2023-11-23 03:39:06 +04:00
d0ec77c067 + yuan_rate_last_updated in GlobalSettings serializer
* Show raw yuan_rate in GlobalSettings
* Use yuan_rate+yuan_rate_commission sum for Checklist calculations
2023-11-23 03:32:54 +04:00
dd30a77466 * Cleanup 2023-11-23 02:46:45 +04:00
d71cb4fa11 * Added missing available_count field in GiftSerializer 2023-11-23 02:45:17 +04:00
dd39a0d2d5 * available_count for Gift 2023-11-23 02:40:30 +04:00
9f29e66d12 * Cleanup 2023-11-23 02:18:55 +04:00
ab9db45b2b + CurrencyAPIClient for fresh CNY rate
+ yuan_rate_last_updated, yuan_rate_commission fields in GlobalSettings
2023-11-23 02:16:53 +04:00
7f1d51c9b4 * Filter Checklist by multiple status values 2023-11-23 02:13:05 +04:00
1d9776daf1 * Fixed wrong id for PriceSnapshot 2023-11-15 18:40:00 +04:00
34f9d08f9a * WIP: annotate_commission_rub 2023-11-11 09:51:17 +04:00
0ba7a8e881 + Set Checklist.gift to NULL on Gift deletion 2023-11-11 09:49:30 +04:00
3af4cb3177 * annotate_price_rub fixed 2023-11-11 09:48:32 +04:00
be224b2cd6 * Check the Gifts that are being added to Checklist from unauthorized users 2023-11-03 00:55:07 +04:00
f9b007ef20 * Allow PoizonAPI for authorized users only 2023-11-03 00:39:53 +04:00
9873c18810 * Allow unauthorized users to edit Checklist.cdek_barcode_pdf field 2023-11-03 00:34:40 +04:00
fc56deaa19 * Option to directly invalidate cdek_barcode_pdf 2023-11-03 00:23:46 +04:00
2d97268b85 * CDEK barcode PDF invalidation 2023-11-03 00:13:35 +04:00
b210c8eebe + Poizon API 2023-11-02 20:41:40 +04:00