8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-10-31 23:22:49 +00:00
Commit graph

148 commits

Author SHA1 Message Date
Hugo Levy-Falk
1a9d3d0824 fix: Permission DoesNotExist when accessing BaseInvoice history
See the issue for details.

Closes #317 .
2021-01-24 16:37:10 +01:00
Hugo Levy-Falk
7b941eee12 Fix: Forgotten legacy ldap_sync calls in machines and cotisations. 2021-01-24 16:37:10 +01:00
Hugo Levy-Falk
27343b8323 Code formatting. 2021-01-24 16:37:09 +01:00
Hugo Levy-Falk
3014b9ac2e Remove useless MinValueValidator(0) on PositiveIntegerField. 2021-01-24 16:37:09 +01:00
69f78d8c60 Ça se dit Rézo Metz 'tain 2021-01-24 16:37:09 +01:00
Gabriel Detraz
3091dca729 Fix : default value should be 0 2021-01-24 16:37:09 +01:00
grisel-davy
bf749fb638 Add number of article in the display of cotisation 2021-01-24 16:37:09 +01:00
grisel-davy
7ac894c168 Replace null by 0 in default value of duration_* 2021-01-24 16:37:09 +01:00
grisel-davy
906f9f0a3b Fix creation of cotisation 2021-01-24 16:36:16 +01:00
histausse
98639f54f0 Add the need_membership field to article
This field is a boolean indicating if the article can be purshased by
nonmembers.
2021-01-24 16:36:16 +01:00
histausse
b317eceec3 Split the membership duration from the connection duration
changes:

Article:
remove COTISATION_TYPE, duration(_days), type_cotisation
add duration(_days)_connection, duration(_days)_membership

Vente:
remove COTISATION_TYPE, duration(_days), type_cotisation
add duration(_days)_connection, duration(_days)_membership
add method `test_membership_or_connection()` to replace
`bool(type_cotisation)`

Cotisation:
remove COTISATION_TYPE, date_start, date_end, type_cotisation
add date_start_con, date_end_con, date_start_memb, date_end_memb

create_cotis(date_start=False) -> create_cotis(date_start_con=False, date_start_memb=False)

+ migration
+ changes to use the new models in the remaining of the code
2021-01-24 16:36:16 +01:00
Hugo Levy-Falk
4c692a42e0 Fix availability of non cotisation articles in facture creation. 2021-01-24 16:36:16 +01:00
Hugo Levy-Falk
2a7d334db7 Avoid failing when permissions depending on another model are None. 2021-01-24 16:35:46 +01:00
69286beabf Fix calls to invoice.save 2021-01-24 16:33:31 +01:00
cb9ae34418 Make emails throw timeout errors, and gracefully handle them 2021-01-24 16:33:31 +01:00
Gabriel Detraz
f91f284ed1 Fix js calculation of price - NaN bug 2019-12-27 17:00:41 +01:00
e7a363866a Add start date tot create cotis 2019-12-20 07:43:35 +00:00
Hugo Levy-Falk
05501c90d9 Fix Overlapping invoices. 2019-12-15 15:24:54 +00:00
Laouen Fernet
2454de2032 Mark strings for translation in cotisations 2019-11-24 23:27:55 +01:00
Hugo Levy-Falk
c4a104b3b6 I like my black.
Just ran black on the whoe repository. Fix #210.
2019-11-04 22:47:24 +01:00
Hugo Levy-Falk
034b50bc58 Fix #189 2019-11-04 00:25:29 +01:00
Hugo Levy-Falk
c76f32cf26 Fix #222 2019-11-03 19:55:37 +01:00
Hugo Levy-Falk
a9194b405a Hello Lara :D
Just ran `find /var/www/re2o \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/Goulven/Lara/g'`.
2019-10-01 13:37:56 +02:00
klafyvel
657ef77bfe Remove contributor levy arcas 2019-09-24 00:44:16 +02:00
Hugo Levy-Falk
8df5a05d89 Do not display unnecessary warnings. 2019-09-19 22:55:16 +02:00
Gabriel Detraz
55b2ff076a NEVER user _ for var; conflicts with _( from trad + remove return True 2019-09-17 02:09:19 +02:00
Hugo Levy-Falk
225731b25c helpful acl messages for cotisations. 2019-09-08 15:17:17 +02:00
Hugo LEVY-FALK
31ba9a271f Fix get_subscription of invoice. 2019-01-21 20:52:28 +01:00
Hugo LEVY-FALK
4fef4a6057 Déplace les templates dans préférences. 2019-01-21 00:54:02 +01:00
Hugo LEVY-FALK
f4b6f10d1e attribut name unique 2019-01-21 00:08:53 +01:00
Hugo LEVY-FALK
ddc2c6e380 Suppression des anciens templates lors de la mise à jour 2019-01-20 19:32:29 +01:00
Hugo LEVY-FALK
985a2f4a52 Choix de l'envoi du reçu par mail 2019-01-20 19:08:11 +01:00
Hugo LEVY-FALK
b83bfc0da9 Fix #123 Subscription voucher 2019-01-20 16:44:22 +01:00
Hugo LEVY-FALK
48d8d7921d subscripbtion voucher 2019-01-20 16:41:11 +01:00
Laouen Fernet
2012f20352 add translations for cotisations/ 2019-01-12 16:56:14 +01:00
Hugo LEVY-FALK
37dbfd2fbf Add Cost Estimates 2019-01-01 18:09:58 +01:00
Hugo LEVY-FALK
f612e4192f Add remark to custom invoices 2019-01-01 18:09:58 +01:00
Hugo LEVY-FALK
70a5996f5d Fix available articles 2018-12-28 23:30:39 +01:00
Maxime Bombar
baa2369436 Non member can't buy connexion : They need to pay membership 2018-11-01 23:40:11 +01:00
Gabriel Detraz
42d718ae8c Fix display facture + room + machine_name 2018-10-15 19:57:56 +02:00
detraz
634527dc95 Fix name of user after invoice comnpay + acl delete invoice 2018-10-14 16:48:11 +02:00
Hugo LEVY-FALK
5431e20629 Hotfix : recupération de l'user lors d'une cotisation en post_save de Vente 2018-10-11 15:13:49 +02:00
Maxime Bombar
5c8e90fde8 [cotisations] Replace Float by Decimal everywhere 2018-10-03 22:01:30 +02:00
Hugo LEVY-FALK
9b080450ab Fix le choix des articles pour les custom invoices 2018-09-01 19:37:34 +02:00
detraz
d609bb6493 Post save custom dans la fonction save, pour __original_valid 2018-09-01 02:16:50 +02:00
Gabriel Detraz
2dd410fedf Fix l'envoie de mail, en postsave maintenant (plus propre) 2018-09-01 01:15:37 +02:00
Gabriel Detraz
0ffdde5a6a Cree une fonction pour set active les utilisateurs cotisant 2018-08-31 13:29:01 +02:00
grisel-davy
fa3aca906f Les nouveau users ne sont pas adhérents et n'ont pas de home 2018-08-31 12:06:32 +02:00
Gabriel Detraz
3eda283f64 Correction du problème de vente d'articles + simplification views et forms 2018-08-26 17:24:33 +02:00
Laouen Fernet
a06082c6d4 Translation of cotisations/ (front) 2018-08-18 13:20:22 +02:00