8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-28 15:42:25 +00:00
Commit graph

30 commits

Author SHA1 Message Date
Maxime Bombar
aa6590e5b1 [Printer] Allow to disable printer in 'Preferences' 2018-12-06 17:57:57 +01:00
Gabriel Detraz
278d752b65 [Printer] Re2o_paginator va dans base.py 2018-12-06 17:57:57 +01:00
Maxime Bombar
14868f4264 [Printer] Handles pdf with fancy encoding in metadata 2018-12-06 17:57:57 +01:00
detraz
aa2b79bd87 [Printer] Fix prinas None crash 2018-12-06 17:57:57 +01:00
detraz
bb52a108d1 [Printer] Print again function 2018-12-06 17:57:57 +01:00
detraz
63c9a23ced [Printer] Dashboard des taches en cours 2018-12-06 17:57:57 +01:00
Gabriel Detraz
7c3788f019 ["Printer] fix print_as keyerror 2018-12-06 17:57:57 +01:00
detraz
0a1ee79414 [Printer] Refactor views avec model_form_set 2018-12-06 17:57:57 +01:00
Maxime Bombar
5d85fd1b74 [Printer] Handles submission of empty files 2018-12-06 17:57:57 +01:00
Maxime Bombar
663ade9765 [Printer] Fix major bug. See below for more explanations :
Before, I used request.session to store some information about the current jobs to be printed.
This was because in the very beginning, I had an issue with disappearing files in my model.

I was able to fix this issue in a previous commit, but I still needed the jids.
However, because of this storage system, if someone tried to print a file, then oppened a second tab,
and tried to print anoter file, he/she would pay twice for the second file ....

I decided to add a hidden field to store the job id and deal with it, and it is readonly to avoid
changing it.
2018-12-06 17:57:57 +01:00
Maxime Bombar
9912e0cfe7 [Printer] Minor Fixes 2018-12-06 17:57:57 +01:00
Maxime Bombar
6773575dc5 [Printer] Consistency : Invoices are in French 2018-12-06 17:57:57 +01:00
Maxime Bombar
b1a8f697f5 [Printer] Cancel jobs that couldn't be paid 2018-12-06 17:57:57 +01:00
Maxime Bombar
505c5e13e4 [Printer] Fix bug in updating job object 2018-12-06 17:57:57 +01:00
Maxime Bombar
5213ade25c [Printer] Send information on how to pick up printings.
Sorry, for now it is strongly based on Cr@ns infrastructure, but it won't last, don't worry.
2018-12-06 17:57:57 +01:00
Maxime Bombar
d945dd013d [Printer] Handles submission of empty files 2018-12-06 17:57:57 +01:00
Maxime Bombar
d7233a0845 [Printer] Fix major bug. See below for more explanations :
Before, I used request.session to store some information about the current jobs to be printed.
This was because in the very beginning, I had an issue with disappearing files in my model.

I was able to fix this issue in a previous commit, but I still needed the jids.
However, because of this storage system, if someone tried to print a file, then oppened a second tab,
and tried to print anoter file, he/she would pay twice for the second file ....

I decided to add a hidden field to store the job id and deal with it, and it is readonly to avoid
changing it.
2018-12-06 17:57:57 +01:00
Maxime Bombar
62aef50c08 [Printer] Prevent crashing when no file is given 2018-12-06 17:57:37 +01:00
Maxime Bombar
3a3f2e0797 [Printer] Rename 'Advanced Options' in 'Next' 2018-12-06 17:57:37 +01:00
Maxime Bombar
a01ff3b88f [Printer] Propagate correctly ValidationError 2018-12-06 17:57:37 +01:00
Maxime Bombar
9cda39a1fe [Printer] Specify in the Invoice who requested the printing 2018-12-06 17:57:37 +01:00
Maxime Bombar
3e4b39bedb [Printer] Limit PrintAs to clubs request.user belongs to 2018-12-06 17:57:37 +01:00
Maxime Bombar
71831c1483 [Printer] Add new Job status 2018-12-06 17:57:37 +01:00
Maxime Bombar
00db1392db [Printer] Create payment & invoice 2018-12-06 17:57:37 +01:00
Maxime Bombar
4552fcceea [Printer] Populate printAs with request.user if None 2018-12-06 17:57:37 +01:00
Maxime Bombar
39cddb2cb5 Compute job price 2018-12-06 17:57:37 +01:00
Maxime Bombar
d44db64da1 [Printer] Upload file to print and manages options 2018-12-06 17:57:37 +01:00
Maxime Bombar
e249d5b233 Login is required to use the printer 2018-12-06 17:57:37 +01:00
Maxime Bombar
085a1dedf8 [Printer] Minor Fixes 2018-12-06 17:57:37 +01:00
Maxime Bombar
a5579ed2b2 Printer App a beginning. 2018-12-06 17:57:37 +01:00