@@ -55,14 +55,14 @@ discard block |
||
| 55 | 55 | #[ORM\GeneratedValue(strategy: 'IDENTITY')] |
| 56 | 56 | #[Groups([ |
| 57 | 57 | 'contract:read', 'task:read', 'display_queue:read', 'display:read', 'order_product_queue:read', 'order:read', 'order_details:read', 'order:write', |
| 58 | - 'invoice:read', 'invoice_details:read', 'status:read','spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 58 | + 'invoice:read', 'invoice_details:read', 'status:read', 'spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 59 | 59 | ])] |
| 60 | 60 | private $id; |
| 61 | 61 | |
| 62 | 62 | #[ORM\Column(name: 'status', type: 'string', nullable: false)] |
| 63 | 63 | #[Groups([ |
| 64 | 64 | 'contract:read', 'task:read', 'display_queue:read', 'display:read', 'order_product_queue:read', 'order:read', 'order_details:read', 'order:write', |
| 65 | - 'invoice:read', 'invoice_details:read', 'status:read','spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 65 | + 'invoice:read', 'invoice_details:read', 'status:read', 'spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 66 | 66 | ])] |
| 67 | 67 | #[Assert\NotBlank] |
| 68 | 68 | #[Assert\Type(type: 'string')] |
@@ -71,42 +71,42 @@ discard block |
||
| 71 | 71 | #[ORM\Column(name: 'real_status', type: 'string', nullable: false)] |
| 72 | 72 | #[Groups([ |
| 73 | 73 | 'contract:read', 'task:read', 'display_queue:read', 'display:read', 'order_product_queue:read', 'order:read', 'order_details:read', 'order:write', |
| 74 | - 'invoice:read', 'invoice_details:read', 'status:read','spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 74 | + 'invoice:read', 'invoice_details:read', 'status:read', 'spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 75 | 75 | ])] |
| 76 | 76 | private $realStatus; |
| 77 | 77 | |
| 78 | 78 | #[ORM\Column(name: 'visibility', type: 'string', nullable: false)] |
| 79 | 79 | #[Groups([ |
| 80 | 80 | 'contract:read', 'task:read', 'display_queue:read', 'display:read', 'order_product_queue:read', 'order:read', 'order_details:read', 'order:write', |
| 81 | - 'invoice:read', 'invoice_details:read', 'status:read','spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 81 | + 'invoice:read', 'invoice_details:read', 'status:read', 'spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 82 | 82 | ])] |
| 83 | 83 | private $visibility = 1; |
| 84 | 84 | |
| 85 | 85 | #[ORM\Column(name: 'notify', type: 'boolean', nullable: false)] |
| 86 | 86 | #[Groups([ |
| 87 | 87 | 'contract:read', 'task:read', 'display_queue:read', 'display:read', 'order_product_queue:read', 'order:read', 'order_details:read', 'order:write', |
| 88 | - 'invoice:read', 'invoice_details:read', 'status:read','spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 88 | + 'invoice:read', 'invoice_details:read', 'status:read', 'spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 89 | 89 | ])] |
| 90 | 90 | private $notify = 1; |
| 91 | 91 | |
| 92 | 92 | #[ORM\Column(name: 'system', type: 'boolean', nullable: false)] |
| 93 | 93 | #[Groups([ |
| 94 | 94 | 'contract:read', 'task:read', 'display_queue:read', 'display:read', 'order_product_queue:read', 'order:read', 'order_details:read', 'order:write', |
| 95 | - 'invoice:read', 'invoice_details:read', 'status:read','spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 95 | + 'invoice:read', 'invoice_details:read', 'status:read', 'spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 96 | 96 | ])] |
| 97 | 97 | private $system = 0; |
| 98 | 98 | |
| 99 | 99 | #[ORM\Column(name: 'color', type: 'string', nullable: false)] |
| 100 | 100 | #[Groups([ |
| 101 | 101 | 'contract:read', 'task:read', 'display_queue:read', 'display:read', 'order_product_queue:read', 'order:read', 'order_details:read', 'order:write', |
| 102 | - 'invoice:read', 'invoice_details:read', 'status:read','spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 102 | + 'invoice:read', 'invoice_details:read', 'status:read', 'spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 103 | 103 | ])] |
| 104 | 104 | private $color = ''; |
| 105 | 105 | |
| 106 | 106 | #[ORM\Column(name: 'context', type: 'string', nullable: false)] |
| 107 | 107 | #[Groups([ |
| 108 | 108 | 'contract:read', 'task:read', 'display_queue:read', 'display:read', 'order_product_queue:read', 'order:read', 'order_details:read', 'order:write', |
| 109 | - 'invoice:read', 'invoice_details:read', 'status:read','spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 109 | + 'invoice:read', 'invoice_details:read', 'status:read', 'spool_item:read', 'spool:read', 'spool:write', 'status:write', 'order_detail_status:read', 'logistic:read', 'queue:read', 'queue_people_queue:read' |
|
| 110 | 110 | ])] |
| 111 | 111 | private $context; |
| 112 | 112 | |
@@ -70,31 +70,31 @@ |
||
| 70 | 70 | #[Entity(repositoryClass: FileRepository::class)] |
| 71 | 71 | class File |
| 72 | 72 | { |
| 73 | - #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'contract:read', 'model:read', 'people:read'])] |
|
| 73 | + #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'contract:read', 'model:read', 'people:read'])] |
|
| 74 | 74 | #[Column(type: 'integer', nullable: false)] |
| 75 | 75 | #[Id] |
| 76 | 76 | #[GeneratedValue(strategy: 'IDENTITY')] |
| 77 | 77 | private int $id = 0; |
| 78 | 78 | |
| 79 | - #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])] |
|
| 79 | + #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])] |
|
| 80 | 80 | #[NotBlank] |
| 81 | 81 | #[ApiFilter(filterClass: SearchFilter::class, properties: ['fileType' => 'exact'])] |
| 82 | 82 | #[Column(type: 'string', length: 255, nullable: false)] |
| 83 | 83 | private string $fileType; |
| 84 | 84 | |
| 85 | - #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])] |
|
| 85 | + #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])] |
|
| 86 | 86 | #[NotBlank] |
| 87 | 87 | #[ApiFilter(filterClass: SearchFilter::class, properties: ['fileName' => 'exact'])] |
| 88 | 88 | #[Column(type: 'string', length: 255, nullable: false)] |
| 89 | 89 | private string $fileName; |
| 90 | 90 | |
| 91 | - #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])] |
|
| 91 | + #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])] |
|
| 92 | 92 | #[NotBlank] |
| 93 | 93 | #[ApiFilter(filterClass: SearchFilter::class, properties: ['context' => 'exact'])] |
| 94 | 94 | #[Column(type: 'string', length: 255, nullable: false)] |
| 95 | 95 | private string $context; |
| 96 | 96 | |
| 97 | - #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])] |
|
| 97 | + #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])] |
|
| 98 | 98 | #[NotBlank] |
| 99 | 99 | #[ApiFilter(filterClass: SearchFilter::class, properties: ['extension' => 'exact'])] |
| 100 | 100 | #[Column(type: 'string', length: 255, nullable: false)] |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | public function discoveryStatus($realStatus, $name, $context): Status |
| 19 | 19 | { |
| 20 | - $status = $this->manager->getRepository(Status::class)->findOneBy([ |
|
| 20 | + $status = $this->manager->getRepository(Status::class)->findOneBy([ |
|
| 21 | 21 | 'realStatus' => $realStatus, |
| 22 | 22 | 'status' => $name, |
| 23 | 23 | 'context' => $context, |