0ff18ef891
+ BonusProgramLevel
...
* Moved Bonus models to separate app
2024-05-26 02:40: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
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
a95ff1d738
* Cleanup
2024-05-20 23:09:49 +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
44722e4fcb
* Disable in-memory cache GlobalSettings
2023-12-22 00:18:03 +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
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
dd39a0d2d5
* available_count for Gift
2023-11-23 02:40:30 +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
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
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
fce76143b4
+ Gift
2023-10-31 16:50:45 +04:00
a7b1f6981f
+ Recursive search of suitable commission price & delivery price
2023-10-15 10:45:43 +04:00
4ac1ee501a
* Try to get delivery_price_CN_RU from parent category if it is zero
2023-10-12 15:26:09 +04:00
fcded2a50d
* Get max commission value
2023-10-12 08:50:13 +04:00
e74af73dad
* Fixed commission math
2023-10-12 02:14:14 +04:00
433837c2fe
* Updated commission logic
2023-10-11 22:48:13 +04:00
b55e42c90f
+ Checklist.split_accepted field
2023-10-04 06:58:09 +04:00
8c0f5ac6fd
+ PriceSnapshot
...
* Category commission inside a commission_rub field
2023-10-04 06:57:53 +04:00
5a1afdf07b
* payment_proof is now a single image + migration from m2m
...
+ split_payment_proof
2023-08-21 16:24:52 +04:00
edf1118f9f
* null-check for Checklist.category
...
* fixed missing deps
* cleanup
2023-08-19 20:01:30 +04:00
4ed1a74a16
+ time_to_buy & buy_time_remaining fields
...
+ Category: hierarchy, removed slugs & added comission per category
* Promocode value in rubles instead of percentage
* Cleanup in GlobalSettings routes
2023-08-18 16:22:32 +04:00
9e04fa354f
* Round up price_rub & full_price fields
2023-07-17 20:48:33 +04:00
edcdc96d8e
* Cleanup
2023-07-17 20:31:51 +04:00
dc22af6d4c
Preview image:
...
* Title is rendered on separate lines, each 12 characters max
* calculate width of block on the left, paste good's image with that info in mind
2023-07-17 20:30:59 +04:00
9221c1f8a8
* PaymentMethod: allow null for cardnumber & requisites
2023-07-13 00:24:25 +04:00
d12bd8db9f
Checklist preview:
...
- render full_price instead of price_rub
- limit to 2 decimal places
2023-07-12 20:04:20 +04:00
6a1e85d524
* renamed paymentproovement -> paymentprovement
2023-07-12 20:03:24 +04:00
568711fe63
+ cdek_courier option for Checklist.delivery
2023-07-10 21:25:51 +04:00
f79069faa5
* Checklist: blank=True for images & payment_proof
2023-07-07 08:35:52 +04:00
e23e4c2f4f
* Cleanup
2023-07-07 08:33:29 +04:00
6676eaed0e
* fixed discout calculation
2023-07-07 08:33:17 +04:00
fc2297b17c
+ array of payment_proof
...
+ Checklist.images is m2m now
+ Image.type & dynamic upload path
2023-07-07 08:22:15 +04:00
4269bfde8e
* Upload base64 images & generate preview
2023-07-07 06:05:14 +04:00
dd52427ef5
* Cleanup
2023-07-07 03:26:17 +04:00
ddceee5d7e
+ InMemoryCache for GlobalSettings
2023-07-07 02:48:30 +04:00
5bfae66ad5
+ thread-safe cache for GlobalSettings
2023-07-07 02:28:46 +04:00
82bdd2a9ee
* fixed float/decimal conversion
2023-07-07 01:52:36 +04:00