|
18 | 18 | */
|
19 | 19 | class SalesSetup extends \Magento\Eav\Setup\EavSetup
|
20 | 20 | {
|
21 |
| - /** |
22 |
| - * This should be set explicitly |
23 |
| - */ |
24 |
| - const ORDER_ENTITY_TYPE_ID = 5; |
25 |
| - |
26 |
| - /** |
27 |
| - * This should be set explicitly |
28 |
| - */ |
29 |
| - const INVOICE_PRODUCT_ENTITY_TYPE_ID = 6; |
30 |
| - |
31 |
| - /** |
32 |
| - * This should be set explicitly |
33 |
| - */ |
34 |
| - const CREDITMEMO_PRODUCT_ENTITY_TYPE_ID = 7; |
35 |
| - |
36 |
| - /** |
37 |
| - * This should be set explicitly |
38 |
| - */ |
39 |
| - const SHIPMENT_PRODUCT_ENTITY_TYPE_ID = 8; |
40 |
| - |
41 | 21 | /**
|
42 | 22 | * @var ScopeConfigInterface
|
43 | 23 | */
|
@@ -234,31 +214,31 @@ public function getDefaultEntities()
|
234 | 214 | {
|
235 | 215 | $entities = [
|
236 | 216 | 'order' => [
|
237 |
| - 'entity_type_id' => self::ORDER_ENTITY_TYPE_ID, |
| 217 | + 'entity_type_id' => 5, |
238 | 218 | 'entity_model' => 'Magento\Sales\Model\ResourceModel\Order',
|
239 | 219 | 'table' => 'sales_order',
|
240 | 220 | 'increment_model' => 'Magento\Eav\Model\Entity\Increment\NumericValue',
|
241 | 221 | 'increment_per_store' => true,
|
242 | 222 | 'attributes' => [],
|
243 | 223 | ],
|
244 | 224 | 'invoice' => [
|
245 |
| - 'entity_type_id' => self::INVOICE_PRODUCT_ENTITY_TYPE_ID, |
| 225 | + 'entity_type_id' => 6, |
246 | 226 | 'entity_model' => 'Magento\Sales\Model\ResourceModel\Order\Invoice',
|
247 | 227 | 'table' => 'sales_invoice',
|
248 | 228 | 'increment_model' => 'Magento\Eav\Model\Entity\Increment\NumericValue',
|
249 | 229 | 'increment_per_store' => true,
|
250 | 230 | 'attributes' => [],
|
251 | 231 | ],
|
252 | 232 | 'creditmemo' => [
|
253 |
| - 'entity_type_id' => self::CREDITMEMO_PRODUCT_ENTITY_TYPE_ID, |
| 233 | + 'entity_type_id' => 7, |
254 | 234 | 'entity_model' => 'Magento\Sales\Model\ResourceModel\Order\Creditmemo',
|
255 | 235 | 'table' => 'sales_creditmemo',
|
256 | 236 | 'increment_model' => 'Magento\Eav\Model\Entity\Increment\NumericValue',
|
257 | 237 | 'increment_per_store' => true,
|
258 | 238 | 'attributes' => [],
|
259 | 239 | ],
|
260 | 240 | 'shipment' => [
|
261 |
| - 'entity_type_id' => self::SHIPMENT_PRODUCT_ENTITY_TYPE_ID, |
| 241 | + 'entity_type_id' => 8, |
262 | 242 | 'entity_model' => 'Magento\Sales\Model\ResourceModel\Order\Shipment',
|
263 | 243 | 'table' => 'sales_shipment',
|
264 | 244 | 'increment_model' => 'Magento\Eav\Model\Entity\Increment\NumericValue',
|
|
0 commit comments