@@ -30,15 +30,15 @@ |
||
30 | 30 | |
31 | 31 | /** Migrate the part locations for parts with known instock */ |
32 | 32 | $this->addSql( |
33 | - 'INSERT INTO part_lots (id_part, id_store_location, amount, instock_unknown, last_modified, datetime_added) ' . |
|
34 | - 'SELECT parts.id, parts.id_storelocation, parts.instock, 0, NOW(), NOW() FROM parts ' . |
|
33 | + 'INSERT INTO part_lots (id_part, id_store_location, amount, instock_unknown, last_modified, datetime_added) '. |
|
34 | + 'SELECT parts.id, parts.id_storelocation, parts.instock, 0, NOW(), NOW() FROM parts '. |
|
35 | 35 | 'WHERE parts.instock >= 0' |
36 | 36 | ); |
37 | 37 | |
38 | 38 | //Migrate part locations for parts with unknown instock |
39 | 39 | $this->addSql( |
40 | - 'INSERT INTO part_lots (id_part, id_store_location, amount, instock_unknown, last_modified, datetime_added) ' . |
|
41 | - 'SELECT parts.id, parts.id_storelocation, 0, 1, NOW(), NOW() FROM parts ' . |
|
40 | + 'INSERT INTO part_lots (id_part, id_store_location, amount, instock_unknown, last_modified, datetime_added) '. |
|
41 | + 'SELECT parts.id, parts.id_storelocation, 0, 1, NOW(), NOW() FROM parts '. |
|
42 | 42 | 'WHERE parts.instock = -2' |
43 | 43 | ); |
44 | 44 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | ->add('description', CKEditorType::class, ['required' => false, 'empty_data' => '', |
82 | 82 | 'label' => 'description.label', 'help' => 'bbcode.hint', 'config_name' => 'description_config', |
83 | 83 | 'attr' => ['placeholder' => 'part.description.placeholder', 'rows' => 2], |
84 | - 'disabled' => !$this->security->isGranted('description.edit', $part) ]) |
|
84 | + 'disabled' => !$this->security->isGranted('description.edit', $part)]) |
|
85 | 85 | ->add('minAmount', SIUnitType::class, |
86 | 86 | ['attr' => ['min' => 0, 'placeholder' => 'part.mininstock.placeholder'], 'label' => 'mininstock.label', |
87 | 87 | 'show_prefix' => $use_si_prefix, "unit" => $part_unit_name, "is_integer" => !$part->useFloatAmount(), |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | 'disabled' => !$this->security->isGranted('move', $part), ]) |
95 | 95 | ->add('tags', TextType::class, ['required' => false, 'label' => 'part.tags', 'empty_data' => "", |
96 | 96 | 'attr' => ['data-role' => 'tagsinput'], |
97 | - 'disabled' => !$this->security->isGranted('edit', $part) ]); |
|
97 | + 'disabled' => !$this->security->isGranted('edit', $part)]); |
|
98 | 98 | |
99 | 99 | //Manufacturer section |
100 | 100 | $builder->add('manufacturer', StructuralEntityType::class, ['class' => Manufacturer::class, |
@@ -69,7 +69,7 @@ |
||
69 | 69 | |
70 | 70 | if ($options['show_prefix']) { |
71 | 71 | $builder->add('prefix', ChoiceType::class, [ |
72 | - 'choices' => ['M' => 6, 'k' => 3, '' => 0, 'm' => -3 ] |
|
72 | + 'choices' => ['M' => 6, 'k' => 3, '' => 0, 'm' => -3] |
|
73 | 73 | ]); |
74 | 74 | } |
75 | 75 |