Commit Graph

88 Commits

Author SHA1 Message Date
imperosol d728a5b844 Price model 2026-04-20 19:30:21 +02:00
imperosol a7c8b318bd add fields to CounterSellers 2026-03-09 16:04:46 +01:00
imperosol 1701ab5f33 feat: custom through model for Counter.sellers 2026-03-09 16:04:46 +01:00
imperosol 7be1d1cc63 feat: ProductFormula model 2026-02-17 22:08:01 +01:00
imperosol 0eccb4a5b5 Add created_at and updated_at to Product model 2026-02-17 22:05:19 +01:00
imperosol c588e5117d make Refilling.payment_method a SmallIntegerField 2025-11-19 21:03:55 +01:00
imperosol ad87617018 remove Refilling.bank 2025-11-19 21:03:55 +01:00
imperosol 56c2c2b70e remove Refilling.is_validated 2025-11-19 21:03:55 +01:00
imperosol 78fe4e52ca make Selling.payment_method a SmallIntegerField 2025-11-19 21:03:55 +01:00
imperosol 2a5893aa79 remove Selling.is_validated 2025-11-19 21:03:55 +01:00
imperosol 3b56d2c22b add index on Selling.date
L'index prend ~20% de la taille de la table (la table fait un peu plus de 100%Mo, et l'index un peu plus de 20Mo), mais permet de diviser par 10 les requêtes qui filtrent sur la date des ventes.

Ca concerne notamment les requêtes db faites sur les pages suivantes :

- les appels à facture (~75ms → ~3ms)
- les ventes d'un club (entre 300ms et 450ms → entre 10ms et 15ms)
- le top conso des comptoirs (sur le Foyer, ~90ms → ~9ms)
- les dernières opérations d'un comptoir (sur le Foyer, ~130ms → ~1.5ms

J'aurais bien aimé mettre également un index sur la troncature au mois de la date, mais c'est compliqué à mettre en place étant donné que postgres ne prend des index que sur des expressions immuables et que, comme elle dépend de la timezone (qui peut changer), la fonction date_trunc n'est pas immuable.
2025-11-07 13:08:01 +01:00
imperosol 8bd82c9d7c Complete invoice call validation feature 2025-10-17 13:44:03 +02:00
Kenneth SOARES 3bcd417ad0 Basic implementation of invoice call validation 2025-10-17 13:40:05 +02:00
imperosol 42b53a39f3 feat: automatic product counters edition 2025-10-10 20:40:44 +02:00
imperosol 5306001f6f ScheduledProductAction model to store tasks related to products 2025-10-10 20:40:44 +02:00
imperosol e864e82573 replace deprecated CheckConstraint.check by CheckConstraint.condition 2025-08-28 16:31:54 +02:00
Thomas Girod 9e0cb7647b fix counter stats page access 2025-04-06 14:18:20 +02:00
Thomas Girod b8a40027b8 remove data migration in migration 0030 of counter 2025-04-04 11:00:31 +02:00
imperosol 002554b802 move CurrencyField to counter 2025-04-04 10:35:17 +02:00
imperosol e7bb08448c feat: generic returnable products 2025-04-04 09:29:54 +02:00
klmp200 b8d43a629b Increase selling label size and add more counter click tests 2024-12-23 00:00:40 +01:00
imperosol 871ef60cf6 remove obsolete RunPython operations 2024-12-19 10:39:07 +01:00
imperosol 483670e798 Make ProductType an OrderedModel 2024-12-17 13:35:29 +01:00
klmp200 f63fb59cbf Allow filtering of refilling options
* Move settings.SITH_COUNTER_PAYMENT_METHOD to counter.apps.PAYMENT_METHOD
* Move student cards to an accordion on counter click
* Make cash default refilling option
* Disable bank selection option in refilling if CHECK are not allowed
* Disable refilling with CHECK from the frontend
2024-12-16 00:15:21 +01:00
imperosol 466fe58763 feat: make student card unique per user 2024-12-15 16:49:24 +01:00
imperosol c51e5eb6cb remove parent_product column in the Product table 2024-12-09 12:59:33 +01:00
imperosol 5a8052ae47 send mail to inactive users 2024-10-11 09:57:41 +02:00
thomas girod d29a5cdb44 Add the new 3DSv2 fields 2024-09-27 11:10:38 +02:00
thomas girod 79ef151ad3 auto compress product icons 2024-09-15 14:12:41 +02:00
thomas girod cfc19434d0 ruff rules UP008 and UP009 2024-07-08 15:37:09 +02:00
thomas girod cd58d5a357 resolve warnings 2024-07-04 11:31:35 +02:00
thomas girod ae1fcdb8c0 fix: CashRegisterSummaryItem.check overriding a django method 2024-07-04 11:20:24 +02:00
thomas girod 3143d3d91a reorganize imports with ruff 2024-06-26 12:35:38 +02:00
thomas girod b5a40cfda9 Mise à jour de Black vers la version 23.3 (#629) 2023-04-22 15:32:31 +02:00
Thomas Girod 751c8a8bc6 unify account_id creation 2023-01-09 21:40:38 +01:00
Théo DURR 4fe46fbcef [FIX] 3DSv2 - Echappement du XML et modif tables (#543)
* Fixed wrong HMAC signature generation
* Updated migration files

Co-authored-by: Julien Constant <julienconstant190@gmail.com>
2023-01-09 17:46:34 +01:00
Thomas Girod fe9e5ce861 integration of 3D secure v2 for eboutic bank payment 2022-11-30 22:52:56 +01:00
Thomas Girod 60eff1000f second patch on eboutic 2022-11-16 20:41:24 +01:00
klmp200 98bfc308a7 Minimal working version
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
klmp200 f7548ab8d1 django2.2: add on_delete on migrations for OneToOneField 2019-10-08 22:46:03 +02:00
klmp200 3cb306bc91 django2.2: add on_delete on migrations for ForeignKey 2019-10-08 22:46:03 +02:00
klmp200 14d9fc04d1 Stronger bdd validation for studentcards 2019-05-20 17:52:33 +02:00
klmp200 577ad07a2b Can identify user on counter with student card UID 2019-05-20 17:52:29 +02:00
klmp200 cb58b00b6e All: Apply Black coding rules 2018-10-05 21:52:55 +02:00
krophil 6113de33ec Add comment in product type 2017-10-25 23:02:46 +02:00
klmp200 c83a990165 Wtf migration blocking me 2017-08-22 16:03:24 +02:00
klmp200 9cb88a878d Even better mailing 2017-08-22 15:36:39 +02:00
klmp200 6cfdcb093f Wtf forgot this little guy 2017-08-17 00:10:12 +02:00
klmp200 3e950e1dd1 Migration fix 2017-08-15 17:37:25 +02:00
klmp200 748e3ae326 Refactor and migration corrections 2017-08-15 13:57:49 +02:00