Commit Graph

564 Commits

Author SHA1 Message Date
thomas girod 415193972c Merge pull request #1223 from ae-utbm/sale-date-index
Add index on `Selling.date`
2025-11-07 14:55:32 +01:00
imperosol 7209801511 fix: product image not saved
fix #1219
2025-11-07 13:14:13 +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 fc615e90b2 fix: notification on invoice call update 2025-10-18 14:35:19 +02: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 f398c9901c fix: 500 on product create view 2025-10-10 20:42:36 +02:00
imperosol 5b91fe2145 use ModelFormSet instead of FormSet for scheduled actions 2025-10-10 20:40:44 +02:00
imperosol abd905c24d write tests 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
Noa Fouich bcf5d30d8f fix css on barman click on phone 2025-10-06 16:13:51 +02:00
imperosol 40c3276c3c remove spaces from autocomplete selects 2025-09-29 17:43:50 +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
Noa Fouich 262281adda Add test case 2025-09-18 14:40:20 +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 a3ac04fc9e fix TS types 2025-06-30 18:35:53 +02:00
imperosol 6e724a9c74 extract AlertMessage to its own file 2025-06-30 18:17:29 +02:00
thomas girod a7f4630d13 Merge pull request #1138 from ae-utbm/counter-admin
improve counter admin pages
2025-06-25 17:03:03 +02:00
imperosol 67884017f8 fix old permanences having end replaced by activity 2025-06-25 01:22:13 +02:00
imperosol 9049d8779c improve counter admin pages 2025-06-21 15:06:08 +02:00
imperosol ae7784a973 rename apikey to api 2025-06-16 14:54:42 +02:00
imperosol 52e53da9ef adapt CanAccessLookup to api key auth 2025-06-16 13:44:43 +02:00
imperosol 44e1902693 Add GET /api/club/{club_id} to fetch details about a club 2025-06-16 13:44:43 +02:00
klmp200 17129af1bb Remove unused popup system and jquery-ui 2025-06-16 09:05:19 +02:00
klmp200 42434d10ca Remove jquery-ui tabs from counter 2025-06-16 09:05:19 +02:00
klmp200 c10b488080 Remove jquery-ui accordions 2025-06-03 20:48:45 +02:00
imperosol fa90477de5 hide cash register views to barmen 2025-05-22 10:06:22 +02:00
klmp200 2a7c1a6438 Test pay with sith 2025-04-23 00:11:50 +02:00
klmp200 8af6af1303 Test basket creation 2025-04-22 23:03:06 +02:00
klmp200 262ed7eb4c Don't use cookies for processing eboutic baskets 2025-04-15 00:07:07 +02:00
thomas girod 77853b808a Merge pull request #1081 from ae-utbm/remove-accounting
remove remaining accounting code
2025-04-13 22:10:02 +02:00
Thomas Girod 05756520a3 remove remaining accounting code 2025-04-13 14:14:26 +02:00
klmp200 31575d0b64 Add tests 2025-04-11 17:12:23 +02:00
klmp200 4ce885ac6b Default France value and cleaner handling of BillingInfo creation 2025-04-11 17:12:23 +02:00
klmp200 5c2f324e13 Use htmx to fill up billing info 2025-04-11 17:12:22 +02:00
Thomas Girod ff220e67c1 use new django.url.reverse query kwarg 2025-04-11 14:54:06 +02:00
thomas girod 811c83552f Merge pull request #1051 from ae-utbm/fragment-mixin
Fragment mixins
2025-04-07 11:31:50 +02:00
imperosol 6a5da0302d add FragmentMixin and UseFragmentsMixin classes 2025-04-06 14:34:22 +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 26d4c4b811 move accound refound view to counter 2025-04-04 10:35:17 +02:00
imperosol 002554b802 move CurrencyField to counter 2025-04-04 10:35:17 +02:00
imperosol eee78008b1 add pages to manage returnable products 2025-04-04 09:33:02 +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