Commit Graph

531 Commits

Author SHA1 Message Date
imperosol 53a3dc0060 fix: wrong quantity displayed on click after removing item 2025-12-20 06:47:29 +01:00
imperosol 4ff4d179a1 refactor: format_timedelta template filter 2025-11-24 16:49:15 +01:00
thomas girod 7cbb3a2c5d Merge pull request #1256 from ae-utbm/remove-is_validated
Database optimisations on counter
2025-11-24 16:46:15 +01:00
thomas girod 4f802ac56e Merge pull request #1260 from ae-utbm/fix-warnings
Fix warnings
2025-11-24 07:43:51 +01:00
thomas girod 16a6e07d4b Merge pull request #1259 from ae-utbm/update-ninja
deps: bump django-ninja to 1.5.0
2025-11-24 07:43:39 +01:00
imperosol 6709befb1f fix timezone issues 2025-11-23 01:30:44 +01:00
imperosol acdb9660f6 deps: bump django-ninja to 1.5.0 2025-11-23 00:48:32 +01:00
imperosol b60bd3a42b fix: product scheduled action on product creation
cf. issue #1257
2025-11-21 11:13:06 +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 e00a64252e use FilterSchema for club sales. 2025-11-12 22:00:18 +01:00
imperosol 075c6f16ec make ApiKeyAuth work on non-safe routes 2025-11-09 21:34:26 +01:00
imperosol 2e9e1b6a78 remove deprecated api csrf argument 2025-11-09 21:34:26 +01:00
imperosol f027464d0e apply new ruff rules 2025-11-07 16:24:28 +01:00
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