mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-04 23:44:33 +02:00
Make more fiields importable
This commit is contained in:
parent
4437f206af
commit
820be46ed3
10 changed files with 35 additions and 29 deletions
|
@ -49,7 +49,7 @@ class MeasurementUnit extends AbstractPartsContainingDBElement
|
|||
* or m (for meters).
|
||||
* @ORM\Column(type="string", name="unit", nullable=true)
|
||||
* @Assert\Length(max=10)
|
||||
* @Groups({"extended", "full"})
|
||||
* @Groups({"extended", "full", "import"})
|
||||
*/
|
||||
protected ?string $unit = null;
|
||||
|
||||
|
@ -57,7 +57,7 @@ class MeasurementUnit extends AbstractPartsContainingDBElement
|
|||
* @var bool Determines if the amount value associated with this unit should be treated as integer.
|
||||
* Set to false, to measure continuous sizes likes masses or lengths.
|
||||
* @ORM\Column(type="boolean", name="is_integer")
|
||||
* @Groups({"extended", "full"})
|
||||
* @Groups({"extended", "full", "import"})
|
||||
*/
|
||||
protected bool $is_integer = false;
|
||||
|
||||
|
@ -66,7 +66,7 @@ class MeasurementUnit extends AbstractPartsContainingDBElement
|
|||
* Useful for sizes like meters. For this the unit must be set
|
||||
* @ORM\Column(type="boolean", name="use_si_prefix")
|
||||
* @Assert\Expression("this.isUseSIPrefix() == false or this.getUnit() != null", message="validator.measurement_unit.use_si_prefix_needs_unit")
|
||||
* @Groups({"full"})
|
||||
* @Groups({"full", "import"})
|
||||
*/
|
||||
protected bool $use_si_prefix = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue