Commit Graph

194 Commits

Author SHA1 Message Date
imperosol 181d435c61 remove Product.selling_price and Product.special_selling_price 2026-04-20 19:30:41 +02:00
imperosol ceb09d4e80 use new price system in counters 2026-04-20 19:30:41 +02:00
imperosol d728a5b844 Price model 2026-04-20 19:30:21 +02:00
imperosol 7e649b40c5 add translation 2026-03-10 19:26:05 +01: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 6a6a7e949f add checks on ProductForm 2026-02-17 22:08:01 +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 df2e65a991 explanation message when eboutic bank payments are disabled 2026-02-08 16:21:09 +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 f027464d0e apply new ruff rules 2025-11-07 16:24:28 +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 dac52db434 forbid past dates for product actions 2025-10-10 20:50:50 +02:00
imperosol 5b91fe2145 use ModelFormSet instead of FormSet for scheduled actions 2025-10-10 20:40:44 +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 83a4ac2a7e feat: automatic product archiving 2025-10-10 20:40:44 +02:00
Kenneth Soares f7c5088048 Merge pull request #1177 from ae-utbm/fix_archived_products
Fix display of archived products
2025-09-19 20:09:40 +02:00
Kenneth SOARES c7fe8961ab fixed display of archived products 2025-09-16 12:43:03 +02:00
imperosol 25cd877160 fix: Counter.edit_groups 2025-09-13 11:39:53 +02:00
imperosol e864e82573 replace deprecated CheckConstraint.check by CheckConstraint.condition 2025-08-28 16:31:54 +02:00
imperosol ae7784a973 rename apikey to api 2025-06-16 14:54:42 +02:00
klmp200 2a7c1a6438 Test pay with sith 2025-04-23 00:11:50 +02:00
Thomas Girod 9e0cb7647b fix counter stats page access 2025-04-06 14:18:20 +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
imperosol 805b146f17 change Club.unix_name to Club.slug_name and remove it from forms 2025-03-28 17:42:53 +01:00
imperosol bba5339407 apply ruff rule DJ012 2025-03-09 15:05:10 +01:00
thomas girod be87af5e06 Merge pull request #1033 from ae-utbm/fixed
Fix sales display
2025-02-25 14:41:14 +01:00
imperosol 6af03240a1 fix Selling.__str__ 2025-02-25 12:59:49 +01:00
Kenneth SOARES e757fb43a1 replaced check with valid attribute is_check 2025-02-24 19:38:00 +01:00
imperosol 428fe68cdb fix CustomerQuerySet.update_amount 2025-01-23 14:55:10 +01:00
imperosol 6400b2c2c2 replace MetaGroups by proper group management 2025-01-03 01:18:28 +01:00
klmp200 022c19c020 Fix counter permissions issues 2024-12-23 02:17:28 +01:00
klmp200 b8d43a629b Increase selling label size and add more counter click tests 2024-12-23 00:00:40 +01:00
klmp200 38f491cf57 Properly test annotations in counter click 2024-12-22 16:43:07 +01:00
klmp200 eed434aeb2 Improve age management for getting products and make get_product a part of counter model 2024-12-22 12:27:58 +01:00
klmp200 eea237b813 Pre-filter allowed products in backend for counter click 2024-12-22 12:06:15 +01:00
klmp200 60f18669c8 Make counter click client side first 2024-12-22 12:06:14 +01:00
imperosol 5da27bb266 rename producttype to product_type 2024-12-18 14:48:59 +01:00
imperosol 483670e798 Make ProductType an OrderedModel 2024-12-17 13:35:29 +01:00
klmp200 03c27b10e5 Fix refill permissions
* Remove ability to refill from counters
* Fix bug where you could refill without any board member on a BAR
* Add a warning message explaining why refilling are disabled
2024-12-17 02:42:07 +01:00
klmp200 a0eb53a607 Apply review comments 2024-12-17 01:41:45 +01:00