mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-29 22:30:01 +02:00
Allow to import attachments and parameters via entity import
This fixes issue #363
This commit is contained in:
parent
bbf7222a6a
commit
06c8e584a4
19 changed files with 73 additions and 58 deletions
|
@ -102,7 +102,7 @@ class Currency extends AbstractStructuralDBElement
|
|||
*/
|
||||
#[ORM\Column(type: 'big_decimal', precision: 11, scale: 5, nullable: true)]
|
||||
#[BigDecimalPositive]
|
||||
#[Groups(['currency:read', 'currency:write'])]
|
||||
#[Groups(['currency:read', 'currency:write', 'simple', 'extended', 'full', 'import'])]
|
||||
#[ApiProperty(readableLink: false, writableLink: false)]
|
||||
protected ?BigDecimal $exchange_rate = null;
|
||||
|
||||
|
@ -114,7 +114,7 @@ class Currency extends AbstractStructuralDBElement
|
|||
*/
|
||||
#[Assert\Currency]
|
||||
#[Assert\NotBlank]
|
||||
#[Groups(['extended', 'full', 'import', 'currency:read', 'currency:write'])]
|
||||
#[Groups(['simple', 'extended', 'full', 'import', 'currency:read', 'currency:write'])]
|
||||
#[ORM\Column(type: Types::STRING)]
|
||||
protected string $iso_code = "";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue