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
022c19c020
Fix counter permissions issues
2024-12-23 02:17:28 +01:00
b8d43a629b
Increase selling label size and add more counter click tests
2024-12-23 00:00:40 +01:00
38f491cf57
Properly test annotations in counter click
2024-12-22 16:43:07 +01:00
eed434aeb2
Improve age management for getting products and make get_product a part of counter model
2024-12-22 12:27:58 +01:00
eea237b813
Pre-filter allowed products in backend for counter click
2024-12-22 12:06:15 +01:00
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
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
a0eb53a607
Apply review comments
2024-12-17 01:41:45 +01:00
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
cde864fdc7
Apply review comments
2024-12-15 22:47:59 +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
e712f9fdb8
improve counter dump admin
2024-11-19 00:43:17 +01:00
imperosol
b091fee035
custom queryset method to bulk update customer balance
2024-11-10 02:59:43 +01:00
thomas girod
d16a207a83
Add more Ruff rules ( #891 )
...
* ruff: apply rule F
* ruff: apply rule E
* ruff: apply rule SIM
* ruff: apply rule TCH
* ruff: apply rule ERA
* ruff: apply rule PLW
* ruff: apply rule FLY
* ruff: apply rule PERF
* ruff: apply rules FURB & RUF
2024-10-15 11:36:26 +02:00
imperosol
5a8052ae47
send mail to inactive users
2024-10-11 09:57:41 +02:00
imperosol
c0a6f5eb30
Optimize barmen timeout and counter state fetch
...
Le timeout se fait en une seule requête et la récupération de l'état des comptoirs en une seule requête aussi. Grâce à ça, on peut en grande partie retirer le cache pour l'affichage de l'état des comptoirs, ce qui a des implications excellentes en termes d'UX (comme le fait que la redirection vers la page de comptoir ou d'activité aura plus une apparence de truc aléatoire)
2024-10-10 19:38:49 +02:00
imperosol
4bc4d266c2
Remove the question mark from the counter state
...
En raison de la manière dont le timeout marche et de l'activité des comptoirs, la notion de "comptoir inactif" n'est pas intuitive. Un comptoir est ouvert ou fermé. Point.
2024-10-10 19:37:00 +02:00
imperosol
58d3a7ee2c
Optimize user account pages
2024-10-04 13:41:39 +02:00
thomas girod
a4fe4996aa
Merge pull request #834 from ae-utbm/real-name
...
Restore real name
2024-10-03 10:12:23 +02:00
655d72a2b1
Completely integrate wepack in django
...
* Migrate alpine
* Migrate jquery and jquery-ui
* Migrate shorten
* Add babel for javascript
* Introduce staticfiles django app
* Only bundle -index.js files in static/webpack
* Unify scss and webpack generated files
* Convert scss calls to static
* Add --clear-generated option to collectstatic
* Fix docs warnings
2024-10-02 16:11:02 +02:00
thomas girod
d29a5cdb44
Add the new 3DSv2 fields
2024-09-27 11:10:38 +02:00
9c93162741
Add missing files
2024-09-23 10:25:27 +02:00
6068c6048a
Use real name of the website once again
2024-09-23 01:37:25 +02:00
thomas girod
79ef151ad3
auto compress product icons
2024-09-15 14:12:41 +02:00
thomas girod
6962b39fc9
use typing.Self for custom queryset methods
2024-09-02 01:03:46 +02:00
thomas girod
cca9732925
eboutic big refactor
2024-08-06 16:49:20 +02:00
thomas girod
82d3791859
refactor counter
2024-07-21 10:51:08 +02:00
thomas girod
8c69a94488
use google convention for docstrings
2024-07-21 00:57:04 +02:00
thomas girod
2ac578c3ad
ruff rule DJ
...
Co-authored-by: Bartuccio Antoine <klmp200@users.noreply.github.com>
2024-07-08 15:37:10 +02:00
thomas girod
171a1cb876
ruff rule FBT
2024-07-08 15:37:09 +02:00
thomas girod
cfc19434d0
ruff rules UP008 and UP009
2024-07-08 15:37:09 +02:00
thomas girod
aa07fa9207
faster tests
2024-07-04 14:03:19 +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
Julien Constant
38295e591d
Fix immutable default variable in get_start_of_semester
( #656 )
...
Le serveur ne percevait pas le changement de semestre, parce
que la valeur par défaut passée à la fonction `get_start_of_semester()` était une fonction appelée une seule fois, lors du lancement du serveur. Bref, c'était ça : https://beta.ruff.rs/docs/rules/function-call-in-default-argument/
---------
Co-authored-by: imperosol <thgirod@hotmail.com>
2023-09-07 23:11:58 +02:00