Commit graph

48 commits

Author SHA1 Message Date
Jan Böhmer
2fc44c91e6 Use newer assert* function for the one deprecated in PHPunit 9 2022-07-23 22:14:35 +02:00
Jan Böhmer
d0b1024d80 Fixed code style. 2020-08-21 21:36:22 +02:00
Jan Böhmer
f0d0a78f65 Show a preview image in builtin attachment select autocomplete. 2020-06-01 14:51:38 +02:00
Jan Böhmer
8b6fe757a0 Removed unnecessary getIDString() function in AbstractDBElement. 2020-05-13 21:19:23 +02:00
Jan Böhmer
7b108f8d4b Format last modified and creation date label placeholders using the correct timezone.
Fixes issue #54
2020-05-13 20:12:51 +02:00
Jan Böhmer
f5d685dfd4 Fixed coding style. 2020-05-10 21:39:31 +02:00
Jan Böhmer
236249e4a1 Added tests for various label services. 2020-05-09 20:24:07 +02:00
Jan Böhmer
3dd0ef26b3 Use shorter format for barcodes, to generate shorter (better readable) barcodes. 2020-05-07 23:11:50 +02:00
Jan Böhmer
85821ec673 Added basic scan dialog. 2020-04-26 21:26:11 +02:00
Jan Böhmer
3163a7ba09 Use [[PLACEHOLDER]] instead of %%PLACEHOLDER%% for label placeholders. 2020-04-25 18:19:15 +02:00
Jan Böhmer
e89cc4bb01 Allow to generate multiple labels at once (multiple pages in 1 PDF file). 2020-04-21 00:00:29 +02:00
Jan Böhmer
16c1f84eb3 Added placeholders for Part lots. 2020-04-17 21:10:08 +02:00
Jan Böhmer
ea0d72bfbb Fixed PHPUnit tests. 2020-04-16 16:25:40 +02:00
Jan Böhmer
7e39443084 Added tests for LabelPlaceholder Providers. 2020-04-15 12:48:02 +02:00
Jan Böhmer
eb9b24d5d7 Fixed inspection issues. 2020-03-29 22:47:25 +02:00
Jan Böhmer
3671c94844 Fixed code style. 2020-03-29 22:16:06 +02:00
Jan Böhmer
b66aabd153 Tries to extract parameters from part description and comment. 2020-03-24 16:57:02 +01:00
Jan Böhmer
da09873be5 Fixed tests coding style. 2020-03-15 13:57:50 +01:00
Jan Böhmer
b6f95ebe48 Allow to add a comment when editing/creating/deleting an element. 2020-02-23 00:44:52 +01:00
Jan Böhmer
9e8771a4ee Changed license to AGPL3+ 2020-02-22 18:14:36 +01:00
Jan Böhmer
594c694ee0 Renamed the base DBElement classes to AbstractDBElement to comply with symfony recommendations. 2020-02-01 19:48:07 +01:00
Jan Böhmer
c8375bfa8b Add log entries on user login or logout. 2020-01-26 13:59:30 +01:00
Jan Böhmer
d0b3750594 Added an basic table to show log entries. 2020-01-24 22:57:04 +01:00
Jan Böhmer
388e847b17 Applied symplify rules to codebase. 2020-01-05 22:49:00 +01:00
Jan Böhmer
fe0f69f762 Applied code style to tests/ 2020-01-05 15:55:16 +01:00
Jan Böhmer
9a7223a301 Fixed code style. 2020-01-04 20:24:09 +01:00
Jan Böhmer
d9b15ddbb9 Use new cached treeview nodes for twig inline generator (admin pages) 2020-01-02 22:55:28 +01:00
Jan Böhmer
ad69c32832 Cache the trees structures for treeViews used in the sidebar. 2020-01-02 18:45:41 +01:00
Jan Böhmer
0c7a8bd85e Disable 2FA settings when demo mode is active. 2019-12-31 18:12:15 +01:00
Jan Böhmer
3e56352688 Added the possibility to delete a U2F key. 2019-12-29 16:20:09 +01:00
Jan Böhmer
604ebe420d Added possibility to show backup codes in user settings. 2019-12-27 18:21:12 +01:00
Jan Böhmer
fba5f9794f Added an service for generating Backup codes and added some tests. 2019-12-27 15:20:06 +01:00
Jan Böhmer
6405dee0ac Made tests compatible with phpunit 8
The new simple-phpunit wrapper is selects the best phpunit version automatically and removes all the void return types if needed.
2019-11-23 19:12:49 +01:00
Jan Böhmer
8b80f31b1e Moved extension to fa-icon logic to a service.
That way we can use it from inside PHP code and the logic is more testable.
2019-11-10 18:19:06 +01:00
Jan Böhmer
3438f15274 Added some more tests. 2019-11-09 16:14:57 +01:00
Jan Böhmer
e557bdedd5 Added an PHP CS fixer config file and applied it to files.
We now use the same the same style as the symfony project, and it allows us to simply fix the style by executing php_cs_fixer fix in the project root.
2019-11-09 00:47:20 +01:00
Jan Böhmer
a516879258 Fixed an exception in getmaxDiscountAmount().
This should fixes an 500 error code, that showed up on some pages. Also added a test method to test this function.
2019-11-05 17:05:04 +01:00
Jan Böhmer
787e498586 Updated copyright headers. 2019-11-01 13:40:30 +01:00
Jan Böhmer
fdfb099cb5 Allow to restrict the file extensions for a attachment type. 2019-10-31 22:37:54 +01:00
Jan Böhmer
dd1dc54d97 Test the admin pages, if read/list/delete is working. 2019-10-26 22:27:04 +02:00
Jan Böhmer
c955a3a221 Moved attachment related services into their own namespaces 2019-10-19 23:29:51 +02:00
Jan Böhmer
4fe10b6169 Uploaded (non secure) attachments live now in public/
That way the attachment files can now be loaded much quicker (without invoking a controller). Also added thumbnailing for pictures in tables.
2019-10-05 20:30:27 +02:00
Jan Böhmer
1395dae6e4 Cache list of builtin ressource attachments.
This should be a bit faster than searching every time.
2019-10-02 18:39:40 +02:00
Jan Böhmer
da46257757 Moved attachment path conversion functions to own service. 2019-09-28 16:06:37 +02:00
Jan Böhmer
a97d016740 Added some more tests.
Also changed the behavior of some code to meet the expectation.
2019-09-22 23:47:40 +02:00
Jan Böhmer
00b19732cc Fixed error in tests. 2019-09-22 21:35:22 +02:00
Jan Böhmer
c2b43f2cfa Show part mass in part info page. 2019-08-16 16:43:31 +02:00
Jan Böhmer
943d235b8b Added some unit tests. 2019-03-26 23:34:40 +01:00