1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
Commit Graph

1160 Commits

Author SHA1 Message Date
Sylvain
a7f68b59dd connect the export modal to the api 2019-07-31 12:00:52 +02:00
Sylvain
22d84e86f5 export modal 2019-07-31 11:10:10 +02:00
Sylvain
a9ea4057f3 interface to customize accounting codes and labels 2019-07-30 16:06:35 +02:00
Sylvain
f772bc3509 api endpoint and worker to export accounting data 2019-07-30 11:43:51 +02:00
Sylvain
82ad69d386 handle avoirs 2019-07-30 10:27:47 +02:00
Sylvain
ab295f064d service to export invoices into a given period to CSV lines for an accounting sofware 2019-07-29 17:51:53 +02:00
Sylvain
3d3be70e29 [bug] newly generated refund is displayed as broken 2019-07-29 12:25:46 +02:00
Sylvain
5e8697de18 fix invoices list API 2019-07-29 12:19:54 +02:00
Sylvain
a778b1063a enhance ruby syntax 2019-07-29 12:17:57 +02:00
Sylvain
0714878bca [bug] unable to generate a refund 2019-07-29 12:07:22 +02:00
Sylvain
1be7bda603 [security] updated sidekiq to fix 3 security vulnerabilities 2019-07-29 11:34:59 +02:00
Sylvain
26c8d402e1 removed dependency to jquery-ui 2019-07-17 15:30:19 +02:00
Sylvain
12fcfee71e [bug] unable to export reservations or subscriptions to excel 2019-07-10 12:25:08 +02:00
Sylvain
38d3ddd48a [bug] export members list to excel is broken 2019-07-10 11:27:45 +02:00
Sylvain
b77fde2506 [bug] OpenlabWorker is crashing with message undefined method profile for StatisticProfile 2019-07-10 10:58:51 +02:00
Sylvain
1253af5377 Prevent invalid invoice logo from crashing the InvoiceWorker 2019-07-10 10:54:35 +02:00
Sylvain
ca61e4e08e [bug] SubscriptionExpireWorker cannot run due to wrong expiration column in SQL query 2019-07-10 10:52:29 +02:00
Sylvain
ddbb492ace [bug] abuses reports are not notified to admins 2019-06-26 12:55:38 +02:00
Sylvain
85f4182b2f [bug] projects RSS feed fails to render 2019-06-24 11:03:40 +02:00
Sylvain
50373b6609 [bug] cookie consent modal is not shown 2019-06-17 14:57:11 +02:00
Sylvain
2d92df3ebb do not delete the user if superadmin + fix text alert 2019-06-17 11:12:05 +02:00
Sylvain
b0b2e8d3a9 use an async worker to notify users about policy update 2019-06-17 10:01:59 +02:00
Sylvain
5cd977b4dd ruby syntax + may fix #132? 2019-06-13 16:53:36 +02:00
Sylvain
f3c433883d [bug] canceled reservation are not removed from statistics (fix #133) 2019-06-13 16:29:12 +02:00
Sylvain
84c90cdef3 ignore cookies modal if GA is disabled 2019-06-13 14:00:43 +02:00
Sylvain
f69703f0a0 allow user to change his choice about cookies 2019-06-13 12:52:56 +02:00
Sylvain
249e59bb2a get user consent about cookies 2019-06-13 11:28:55 +02:00
Sylvain
7fc03af6bc [ongoing] cookies consent modal 2019-06-12 16:53:37 +02:00
Sylvain
6e5cc2a4c4 typo and syntax 2019-06-12 16:31:45 +02:00
Sylvain
d0cd5a90d2 handle deleted users in notifications 2019-06-12 15:49:35 +02:00
Sylvain
ddce997e12 display data collection purpose on each input field + fix notifications on deleted user 2019-06-12 15:34:03 +02:00
Sylvain
0e18defe53 handle deleted user in statistics 2019-06-12 12:40:43 +02:00
Sylvain
a53c6e80e7 move invoice->operator to invoicing_profile + minor fixes to handle user deletion 2019-06-12 12:22:38 +02:00
Sylvain
86ded2b8d2 [ongoing] fixes for invoices pdf files 2019-06-11 16:56:11 +02:00
Sylvain
37b9e3da60 link statistic profile to invoices 2019-06-11 10:02:48 +02:00
Sylvain
818d1357a9 save user cration date in statistic_profile 2019-06-06 16:54:09 +02:00
Sylvain
cfd33c3a52 migrate projects to statistic_profile 2019-06-06 16:34:53 +02:00
Sylvain
35da65b686 change statistic_service to use statistic_profile + use raw sql in migrations 2019-06-06 13:58:49 +02:00
Sylvain
fe2a6f7120 migrate trainings to statistic_profile and adjust code 2019-06-06 12:00:21 +02:00
Sylvain
0a5e373730 models linking 2019-06-05 16:21:39 +02:00
Sylvain
f0c5b0eb09 init StatisticProfileTraining 2019-06-05 16:17:56 +02:00
Sylvain
6f87873b2c fix init member group when created from signup modal 2019-06-05 16:09:11 +02:00
Sylvain
5c57bcc7c6 defer member search in admin panel to optimize requesting 2019-06-05 15:35:27 +02:00
Sylvain
660a8abe8b fix statistic_profile 2019-06-05 12:24:01 +02:00
Sylvain
17fbd6b465 multiple fixes related to statistic_profile & invoicing_profile + fix users list while sorting by subscription 2019-06-05 12:11:51 +02:00
Sylvain
bd796bc588 fix SubscriptionsController - all tests passing 2019-06-05 07:58:49 +02:00
Sylvain
9fd6ea08b9 fix SubscriptionGroupValidator 2019-06-05 07:52:02 +02:00
Sylvain
4c033614ae [ongoing] migrate subscriptions & reservations to statistic_profile 2019-06-04 16:50:23 +02:00
Sylvain
52992ac9d5 move gender & birthday to statistic_profile 2019-06-04 13:33:00 +02:00
Sylvain
42e73e4315 [ongoing] statistic profile 2019-06-03 17:25:04 +02:00
Sylvain
9ef2f142bd link HistoryValue to InvoicingProfile + improved invoices tests 2019-06-03 16:51:43 +02:00
Sylvain
7ed97ef35a link wallet & its transactions to invoicingprofile 2019-06-03 16:00:09 +02:00
Sylvain
6011f27268 finish moving organization & address to invoiving profile: fix create & edit user 2019-06-03 12:06:01 +02:00
Sylvain
a211ad39ff moving organization & address to invoicingProfile + refactored doc about postgre 2019-05-29 14:28:14 +02:00
Sylvain
142e07f3c9 update code to use invoicingprofile 2019-05-29 12:01:24 +02:00
Sylvain
ffbca98276 [ongoing] fix api to use the invoicing_profile 2019-05-28 16:49:36 +02:00
Sylvain
83d3fd83b3 [bug] close period reminder is sent too early 2019-05-27 16:09:27 +02:00
Sylvain
3945b760b5 [ongoing] attach invoices to invoicingProfile instead of user 2019-05-27 13:03:44 +02:00
Sylvain
5231e464fe fix invoicingProfile schema + migration script 2019-05-27 13:00:05 +02:00
Sylvain
70bc3d5732 put invoicing data into separate table 2019-05-27 13:00:05 +02:00
Sylvain
0c51f25f7f Merge branch 'hotfix' into dev 2019-05-27 12:50:19 +02:00
Sylvain
5d32756928 [bug] updating a setting does not chain new values 2019-05-27 11:21:29 +02:00
Sylvain
6f2483a51f [bug] when generating an Avoir at a previous date, the resulting checksum may be invalid 2019-05-27 11:11:21 +02:00
Sylvain
b423d9fce7 add link to interface in abuse report mail 2019-05-21 12:38:07 +02:00
Sylvain
9c2598d405 ability to delete processed reports 2019-05-21 12:24:45 +02:00
Sylvain
dfb0ea12f0 style component 2019-05-21 11:57:44 +02:00
Sylvain
7bbea22e76 display reports in interface 2019-05-21 11:49:50 +02:00
Sylvain
630809b91f moved abuses panel to admin zone + fix loading template 2019-05-21 11:16:12 +02:00
Sylvain
dd4b6e2cb1 [ongoing] abuses management interface 2019-05-09 18:27:19 +02:00
Sylvain
10a87eb4cb refactored project list translations 2019-05-09 16:09:20 +02:00
Sylvain
3394413747 fixed syntax 2019-05-07 15:56:23 +02:00
Sylvain
26b901ebb5 [bug#131] Availabilities export report an erroneous number of reservations for machine availabilities 2019-05-07 12:24:51 +02:00
Sylvain
4dfe02bebf improved ruby syntax to match coding rules in some services 2019-04-25 15:09:37 +02:00
Sylvain
21c7484396 notify admin about notifications sent 2019-04-25 12:04:16 +02:00
Sylvain
8369e2e78e fix: restore current policy on dropdown selection 2019-04-25 11:58:42 +02:00
Sylvain
162a56250a notify users after privacy policy update + hide undefined content 2019-04-25 11:40:26 +02:00
Sylvain
531e298b14 [bug] updating a setting does not chain new values 2019-04-23 13:04:50 +02:00
Sylvain
c0c9b2a980 privacy policy: fixed admin view after update + display last update date 2019-04-23 12:58:01 +02:00
Sylvain
d0f0a293f3 save as draft or publish 2019-04-18 16:55:50 +02:00
Sylvain
caf6054e66 convert es6 to es5 in erb file 2019-04-18 16:01:58 +02:00
Sylvain
d9ce766f42 using ruby interpretation for SettingsController 2019-04-18 15:58:45 +02:00
Sylvain
7a2fc7c42e [ongoing] save as draft or publish 2019-04-18 15:57:56 +02:00
Sylvain
8fae8b104d admin interface to customize privacy policy page 2019-04-18 12:30:00 +02:00
Sylvain
5bdaebb2f2 privacy policy public page 2019-04-18 12:00:57 +02:00
Sylvain
43ff06c35d fixed and improved translations 2019-04-18 11:35:09 +02:00
Sylvain
403e3a5562 enhance code quality for statistic service 2019-04-16 11:57:36 +02:00
Sylvain
936495e596 [bug] when paying reservation with wallet, the invoice footprint is not correctly updated 2019-04-08 17:04:53 +02:00
Sylvain
3b3e1af822 improved coupon filtering to allow pagination while filtering 2019-04-08 11:00:00 +02:00
Sylvain
44479b5597 allow filtering coupons list 2019-04-04 18:00:19 +02:00
Sylvain
9f8d24ec4f paginate list of coupons 2019-04-04 17:28:29 +02:00
Sylvain
c223bd99ea add loader while archive is not ready 2019-04-04 12:55:21 +02:00
Sylvain
c786ba6edb notify user about archiving 2019-04-04 11:37:23 +02:00
Sylvain
94796bca29 fixed ruby syntax with linter 2019-04-04 09:33:41 +02:00
Sylvain
21a5f5591a [ongoing] generate achives async 2019-04-03 17:57:21 +02:00
Sylvain
0f622d1aec fixed ruby style 2019-04-03 17:39:45 +02:00
Sylvain
4be597ba9d fixed ruby style 2019-04-03 17:33:43 +02:00
Sylvain
8a6ff0c093 prevent closing a period not in the past 2019-04-03 17:27:25 +02:00
Sylvain
9e39a0517c [bug] vat rat in archives may be wrong 2019-04-03 16:56:47 +02:00
Sylvain
8e895e6b6a force user to use datepicker in close period modal 2019-04-03 14:47:39 +02:00
Sylvain
79c3cfaa27 prevent the user to close the modal modal while closing a period 2019-04-03 14:31:39 +02:00
Sylvain
722d5d36e7 check server-side that periods match length requirements + explain requirements to user before closing 2019-04-03 13:04:19 +02:00
Sylvain
93ff761e64 [bug] Error :syntax when using quote in event category name 2019-04-02 16:19:23 +02:00
Sylvain
7cdacb3164 print date in archive 2019-04-01 13:36:45 +02:00
Sylvain
7a317b7e45 [bug] unable to add a file attachment to an event 2019-03-28 11:30:25 +01:00
Sylvain
a50bb63b64 prevent double validation while closing period 2019-03-27 17:37:36 +01:00
Sylvain
fc04886e89 prevent generate refund before first accounting period 2019-03-27 16:46:08 +01:00
Sylvain
be6b82fda1 improved VAT history + updated changelog + added instruction on watermark localisation 2019-03-27 15:50:38 +01:00
Sylvain
ea2a73cdc1 add asterisks on required fields 2019-03-26 17:20:10 +01:00
Sylvain
75310d599f Merge branch 'host' into dev 2019-03-26 14:33:30 +01:00
Sylvain
fcc78d3930 apply coding rules to openAPI doc 2019-03-26 14:27:39 +01:00
Sylvain
b31bb272cc unbranding LaCasemate 2019-03-26 14:04:45 +01:00
Sylvain
01ac73a1a1 removed capistrano & unicorn + cleaned lacasemate brading 2019-03-26 10:40:58 +01:00
Sylvain
2ac0336adb Merge branch 'dev' into host 2019-03-25 16:17:23 +01:00
Sylvain
5cdaa014ef [security] updated devise + updated rails 2019-03-25 14:57:48 +01:00
Sylvain
fd55c8d315 use SHA-3 (256 bits) to compute checksums + simplify accounting period integrity check UI 2019-03-21 17:15:41 +01:00
Sylvain
8530a6f655 superadmin + fixed free space notification 2019-03-20 16:49:38 +01:00
Sylvain
bf526458b4 add label to accounting period button 2019-03-20 11:56:03 +01:00
Sylvain
940ea3051b chain historyValues with sha256 footprints 2019-03-20 11:01:53 +01:00
Sylvain
03c0c0d4fb close periods at 1 year minus 1 day + fix alert reminder transalation 2019-03-18 14:45:21 +01:00
Sylvain
7b0824a4a3 notify admins when no accounting period closed for 1 year 2019-03-18 14:33:30 +01:00
Sylvain
c356f35f29 add operator_id to invoices 2019-03-18 11:11:09 +01:00
Sylvain
b439c643cb zip archives, include checksum, chained zips 2019-03-13 17:48:35 +01:00
Sylvain
9fcb4277cd Merge branch 'dev' into host 2019-03-13 16:49:11 +01:00
Sylvain
402be18bdf model documentation 2019-03-13 16:49:03 +01:00
Sylvain
857b1cebba fix accounting period checksum + improved period validation 2019-03-12 15:26:17 +01:00
Sylvain
4f418cc3fb compute total without taxes + fix close period date pickers + improved archived % number format 2019-03-12 13:36:10 +01:00
Sylvain
b9e427a9fc include VAT in archives 2019-03-12 12:15:14 +01:00
Sylvain
4e7a62bc2b [ongoing] close period for max 1 year + force contiguous periods + fix totals 2019-03-12 09:14:20 +01:00
Sylvain
2a32bc4752 date the archives 2019-03-11 16:25:51 +01:00
Sylvain
b940ae0327 display complete info set on accounting archives 2019-03-11 16:11:49 +01:00
Sylvain
e35c50e42b multilingual watermark on invoices 2019-03-11 14:47:52 +01:00
Sylvain
811d7288e7 fix chain_record methods 2019-03-11 13:49:16 +01:00
Sylvain
ae7a939cba Merge branch 'dev' into host 2019-03-11 12:48:14 +01:00
Sylvain
20e91ede4e Limit members search to 50 results to speed up queries 2019-03-11 12:47:46 +01:00
Sylvain
e78831e3cf enlight watermark 2019-03-11 12:41:58 +01:00
Sylvain
e543f1fe3e add watermark to invoices in dev/staging/test environment 2019-02-27 17:44:52 +01:00
Sylvain
672029876a Merge branch 'dev' into host 2019-02-27 15:30:23 +01:00
Sylvain
a30513d59e refactored invoice generation 2019-02-26 16:27:26 +01:00
Sylvain
a2ce0c3753 refactored invoice pdf generation script 2019-02-26 16:11:37 +01:00
Sylvain
9854a4b965 prevent memory saturation with periodic checks 2019-02-26 15:18:19 +01:00
Sylvain
1c8e82df14 added free disk space notification to oss release to prevent collision 2019-02-26 11:13:57 +01:00
Sylvain
8f210bb713 Merge branch 'dev' into host 2019-02-26 10:45:34 +01:00
Sylvain
1b97c39645 refactored notificationcenter to accept meta_data 2019-02-26 10:45:12 +01:00
Sylvain
279a958e46 download accounting period archive through interface 2019-02-25 17:22:54 +01:00
Sylvain
f11f629bcf compute, secure and archive period total and cumulative total of each accounting period 2019-02-25 14:51:19 +01:00
Sylvain
1321e196f2 Merge branch 'dev' into host 2019-02-25 14:41:00 +01:00
Sylvain
e9b52a4c42 added sass variables for bootstrap upgrade 2019-02-25 14:40:39 +01:00
Sylvain
cf23fae73c Merge branch 'dev' into host 2019-02-14 16:35:38 +01:00
Sylvain
7b573dd37f restored deprecated notification 2019-02-14 13:05:09 +01:00
Sylvain
9f765009a8 [bug] unable to create oauth2 sso
[bug] application failed when sso activated
[bug] missing translations in oauth2 forms
2019-02-14 12:25:37 +01:00
Sylvain
06f2c3626c refactored rake tasks 2019-02-13 12:59:28 +01:00
Sylvain
ffe5516d10 prevent closing an accounting period if any checksum error in period 2019-02-12 17:38:44 +01:00
Sylvain
9f4d026f30 fix last archive infos in closed accounting period 2019-02-12 16:19:11 +01:00
Sylvain
2ba3890325 display records integrity status 2019-02-12 16:00:36 +01:00
Sylvain
f9364b3872 chains invoice and invoiceItem records. save them in archives 2019-02-12 14:45:21 +01:00
Sylvain
cc124a0dee [ongoing] chain invoice records 2019-02-11 13:57:07 +01:00
Sylvain
6e274afe3b accounting archive: insert code checksum and previous archive checksum 2019-01-31 12:19:50 +01:00
Sylvain
55ae979213 Merge branch 'dev' into host 2019-01-30 10:04:12 +01:00
Sylvain
a528fc3766 infos about deprecated notification 2019-01-30 10:03:53 +01:00
Sylvain
6e89df045d [bug] some reservation slots are not shown on the user calendars (#127) 2019-01-29 11:29:14 +01:00
Sylvain
da672ea8b6 Merge branch 'dev' into host 2019-01-21 16:34:06 +01:00
Sylvain
da4c9cf26f [bug] invalid translation of title in new partner modal + refactored plans controller 2019-01-21 16:27:59 +01:00
Sylvain
75eaf4d4d0 improved member autocompletion with multiple words + refactored members controller 2019-01-21 15:17:56 +01:00
Sylvain
62410da9e1 add test for member autocomplete 2019-01-21 11:49:35 +01:00
Sylvain
80aab9f17c fixed: create event with custom price 2019-01-21 11:26:42 +01:00
Sylvain
c4b3c1eab5 [bug] unable to search in user autocomplete 2019-01-21 09:42:51 +01:00
Sylvain
65892684a8 fixed availabilities controller 2019-01-17 16:55:25 +01:00
Sylvain
5a09453ac2 refactored availabilities controller 2019-01-17 16:26:03 +01:00
Sylvain
da25e16c50 refactored events controller 2019-01-17 09:53:28 +01:00
Sylvain
d2c4773ac9 [bug] unable to delete an admin who has changed a setting 2019-01-16 17:09:27 +01:00
Sylvain
0cd841da33 rubocop api controllers
TODO:
 - events controller
 - availabilies controller
 - members controller
 - plans controller
2019-01-16 16:28:25 +01:00
Sylvain
c6cf86fa5c rubocop api controllers 2019-01-16 13:07:19 +01:00
Sylvain
526b9aab0c [bug] unable to create/edit plan of 12 months/53 weeks 2019-01-16 12:10:07 +01:00
Sylvain
27f3296719 rubocop coupon 2019-01-16 11:07:09 +01:00
Sylvain
eb69822ce0 Merge branch 'dev' into host 2019-01-14 15:00:55 +01:00
Sylvain
77797db2f1 display VAT rates history 2019-01-14 15:00:33 +01:00
Sylvain
7ca72f53f2 refactored ApplicationController + rubymine stub for devise 2019-01-14 14:45:23 +01:00
Sylvain
068f4c829b fixed user's role method call 2019-01-14 14:32:00 +01:00
Sylvain
a1ba272538 Merge branch 'dev' into host 2019-01-14 13:00:24 +01:00
Sylvain
f6e236aeb5 refactored roles methods to match ruby conventions 2019-01-14 12:57:31 +01:00
Sylvain
0927336956 fixed reservation after removing disable_invoicing + updated vcr cassettes 2019-01-14 12:45:17 +01:00
Sylvain
a2eb10331e [ongoing] remove invoicing disabled per user 2019-01-10 16:50:54 +01:00
Sylvain
1db5e76bc9 tests on accounting periods + force reload periods when opening periods/avoir modal 2019-01-10 15:12:22 +01:00
Sylvain
4b5bd74188 add invoice_items in accounting archive 2019-01-10 13:05:57 +01:00
Sylvain
b42d1614fd export to flat json files closed periods 2019-01-10 10:52:29 +01:00
Sylvain
2f17d90054 remove button 'generate refund' for invoices within closed periods 2019-01-09 17:07:15 +01:00
Sylvain
35638d611b validates invoice&avoir creation to prevent any creation in closed period 2019-01-09 16:54:09 +01:00
Sylvain
5e8172af35 Merge branch 'dev' into us78 2019-01-09 16:28:36 +01:00
Sylvain
5ab0333176 rubocop invoice & avoir 2019-01-09 16:28:23 +01:00
Sylvain
dafeb668e0 Merge branch 'dev' into us78 2019-01-09 12:07:47 +01:00
Sylvain
56829190d6 refactored invoices controller 2019-01-09 12:07:31 +01:00
Sylvain
9fac706da8 validates accounting periods on creation + prevent refunding on closed periods (client only) 2019-01-08 17:32:45 +01:00
Sylvain
84aa0c75ff fix date on period closing + improved confirmation msg 2019-01-08 11:58:37 +01:00
Sylvain
ccff40b226 handle dates default values and limits in close period modal 2019-01-08 11:19:07 +01:00
Sylvain
12c25389fa Merge branch 'dev' into us78 2019-01-08 09:56:22 +01:00
Sylvain
d4cddc92fb code comments 2019-01-08 09:56:07 +01:00
Sylvain
859544565b [bug] first day of week is ignored in statistics custom filter 2019-01-08 09:38:35 +01:00
Sylvain
d8c8e4f72f set default dates in close modal pickers 2019-01-07 17:21:32 +01:00
Sylvain
5b13c59496 list existing closings in close period modal 2019-01-07 16:45:31 +01:00
Sylvain
d89f9e9301 close an accounting period from interface to db through api 2019-01-07 15:33:09 +01:00