Jan Böhmer
d59b8817c3
Do not use fetch join, as even with the N+1 problem the queries are faster than with the very complex and slow expressions needed for the fetch Join pagination
2023-07-22 23:51:06 +02:00
Jan Böhmer
2e8cb35acc
Use ManyToOne instead of OneToOne for master_picture_attachment like before
2023-07-20 21:54:13 +02:00
Jan Böhmer
2ddfe48aba
Do the doctrine definitions of the master preview attachment in the sub classes
...
This makes lazy fetching works and saves some db queries.
2023-07-19 22:49:40 +02:00
Jan Böhmer
3a8c5a788f
Fixed phpstan issues
2023-07-17 00:43:35 +02:00
Jan Böhmer
f423fdf7f8
Fixed bug in DB schema, which prevented the creation of parts without info provider reference
2023-07-16 23:48:55 +02:00
Jan Böhmer
a95ba1acc4
Add a reference to the used info provider to a part
2023-07-16 01:24:49 +02:00
Jan Böhmer
9e3cb4d694
Use enum for manufacturing status
2023-07-08 23:49:47 +02:00
Jan Böhmer
b7c8ca2a48
Improved typing and phpdoc type annotations
2023-06-18 15:37:42 +02:00
Jan Böhmer
e8771ea118
Fixed some more phpstan issues
2023-06-18 00:00:58 +02:00
Jan Böhmer
19530a9102
Fixed some PHPStan level 5 issues
2023-06-13 20:24:54 +02:00
Jan Böhmer
fc3290271c
Started to increase the phpstan level
2023-06-13 10:36:34 +02:00
Jan Böhmer
930adaf439
Moved custom validators from annotations to attributes
2023-06-11 19:32:15 +02:00
Jan Böhmer
6a2ff9d153
Added declare strict types to all files
2023-06-11 18:59:07 +02:00
Jan Böhmer
684334ba22
Improved code style of tests
2023-06-11 15:02:59 +02:00
Jan Böhmer
5629215ce4
Use imports instead of FQNs
2023-06-11 15:00:28 +02:00
Jan Böhmer
7ee01d9a05
Applied rector with PHP8.1 migration rules
2023-06-11 14:17:19 +02:00
Jan Böhmer
0837f84a43
Migrated doctrine annotations to attributes
2023-05-28 01:51:13 +02:00
Jan Böhmer
0bc4699cdc
Started to move doctrine annotations to attributes (rector automated)
2023-05-28 01:33:45 +02:00
Jan Böhmer
a43af180a7
Applied rector rules up to symfony 6.2
2023-05-28 01:21:05 +02:00
Jan Böhmer
334d81db08
Mark that amount is unknown in part tables and info page
...
Fixes issue #282
2023-04-29 22:33:46 +02:00
Jan Böhmer
d04d743520
Fixed typos
2023-04-15 23:14:53 +02:00
Jan Böhmer
63df16a369
Removed unused imports
2023-04-15 22:27:19 +02:00
Jan Böhmer
13209c3236
Improved typing of properties
2023-04-15 22:25:03 +02:00
Jan Böhmer
29d1d49aca
Fixed some more inspection issues
2023-04-15 22:05:29 +02:00
Jan Böhmer
de96aae9a5
Fixed inspection issues
2023-04-15 21:49:19 +02:00
Jan Böhmer
fc1d2269d0
Fixed error with default values on older MySQL version
...
We have removed the default values for the columns completly, as it were only needed on SQLite when adding the column to existing row.
As this was done in an earlier migration, we can now safely remove it.
The MySQL now correctly detects no more changes. SQLite however still generates some wrong migration changes.
2023-04-09 01:17:48 +02:00
Jan Böhmer
bcda71cb25
Ensure that the a lot / storage location owner is not the anonymous user
2023-04-08 00:50:42 +02:00
Jan Böhmer
5330476dbe
Highlight amount sum in part tables and part info page, when amount is less than minAmount
2023-04-03 23:15:29 +02:00
Jan Böhmer
9244fe5944
Fixed internal server error, when using owner placeholder on stored label profile
2023-04-03 22:23:53 +02:00
Jan Böhmer
8e2f297839
Added migrations for sqlite
2023-04-03 00:47:51 +02:00
Jan Böhmer
1acceae81e
Enforece that part lot owner matches storage location owner, if option is selected
2023-04-02 23:58:15 +02:00
Jan Böhmer
047c82791b
Added basic fields and migration for MySQL
2023-04-02 19:10:36 +02:00
Jan Böhmer
27b43041f9
Allow to import orderdetails and partLots of parts
2023-04-02 01:00:40 +02:00
Jan Böhmer
820be46ed3
Make more fiields importable
2023-03-13 00:52:22 +01:00
Jan Böhmer
61e2dde400
Allow to import category, footprint and manufacturer by giving a string in the CSV file
2023-03-12 21:10:48 +01:00
Jan Böhmer
85ae862381
Allow to set basic data via import
2023-03-12 20:01:29 +01:00
Jan Böhmer
38b5e95842
Improved serialization result for parts
2023-03-12 01:41:44 +01:00
Jan Böhmer
2c67586873
Improved serialized fields
2023-03-12 01:12:35 +01:00
Jan Böhmer
82aec6f1ee
Fixed problem with failing foreign key constraints on preview pic (1/2)
2023-02-20 00:06:00 +01:00
Jan Böhmer
5bf68632c3
Use MPN instead of part name for auto product URLs if available
...
Implements issue #93
2023-01-28 23:31:06 +01:00
Jan Böhmer
22950f2476
Validate that a parts name fullfills the regular expression set in a category
2023-01-28 21:36:19 +01:00
Jan Böhmer
7b6a906d98
Renamed "devices" permission to "projects"
2023-01-08 20:10:58 +01:00
Jan Böhmer
adc070d10c
Added possibility to set project status
2022-12-29 15:22:34 +01:00
Jan Böhmer
5521995f79
Delete ProjectBOMEntry when the associated part is deleted
2022-12-29 13:27:33 +01:00
Jan Böhmer
7f38095e82
Added a part info tab to show in which projects the part is used.
2022-12-18 23:58:04 +01:00
Jan Böhmer
0c7ec9f0c7
Added some basic DB fields for the new project system
2022-12-18 20:34:25 +01:00
Jan Böhmer
8ae4e9fe05
Fixed some inspection issues
2022-12-18 19:45:04 +01:00
Jan Böhmer
b1d359f538
Added internal part number field to parts
2022-12-04 02:28:47 +01:00
Jan Böhmer
68462185ba
Removed old GPLv2 copyright header
2022-11-29 22:28:53 +01:00
Jan Böhmer
bd12185b44
Show expired lot sum in parts table in parenthesis
2022-11-28 23:59:01 +01:00