Bestellung per DAL Code wird nicht im Backend angezeigt

Hallo,
nach dem Import folgender Bestellung via DAL, landet dieselbige zwar in die Datenbank, aber sie verursacht im Backend eine Endlosschleife. Was läuft da schief? Wenn ich im Backend eine Bestellung manuell anlege, wird die auch angezeigt, also liegt es am folgenden Code

          $this->orderRepository->create(
                [
                    [
                        'id'               => Uuid::randomHex(),
                        'currencyFactor'   => 1,
                        'orderDateTime'    => $createdAt,
                        'orderNumber'      => $arItems2BeUsedCreatingOrders[$i]['OrderNumber'],
                        'stateId'          => $stateID,
                        'currencyId'       => $currencyID,
                        'customerId'       => $customerID,
                        'salesChannelId'   => $salesChannelID,
                        'billingAddressId' => $adressID,
                        'price'            => [
                            'netPrice'        => 100,
                            'totalPrice'      => 150,
                            'calculatedTaxes' => [
                                                   [
                                                       'tax'     => 20,
                                                       'taxRate' => 19.0,
                                                       'price'   => 100,
                                                   ]
                            ],
                            'taxRules'        => [
                                [
                                    'taxRate'    => 20,
                                    'percentage' => 100,
                                ],
                            ],
                            'positionPrice'   => 100,
                            'rawTotal'        => 100,
                            'taxStatus'       => 'net'
                        ],
                        'itemRounding'     => [
                            'interval'    => 0.01,
                            'decimals'    => 2,
                            'roundForNet' => true,
                        ],
                        'totalRounding'    => [
                            'interval'    => 0.01,
                            'roundForNet' => true,
                            'decimals'    => 2,
                        ],
                        'shippingCosts'    => [
                            'unitPrice'       => 5.00,
                            'totalPrice'      => 5.00,
                            'quantity'        => 1,
                            'calculatedTaxes' => [
                                [
                                    'tax'     => 0.95,
                                    'taxRate' => 19.0,
                                    'price'   => 5.00,
                                ],
                            ],
                            'taxRules'        => [
                                [
                                    'taxRate'    => 20,
                                    'percentage' => 100,
                                ],
                            ],
                        ],
                        'lineItems'        => [
                            [
                                'identifier'      => Uuid::randomHex(),
                                'label'           => 'Product Name',
                                'quantity'        => 1,
                                'type'            => 'product',
                                'priceDefinition' => [
                                    'type'     => 'quantity',
                                    'price'    => 100,
                                    'quantity' => 1,
                                    'taxRules' => [
                                        [
                                            'taxRate'    => 20,
                                            'percentage' => 100,
                                        ],
                                    ],
                                ],
                                'price'           => [
                                    'unitPrice'       => 100,
                                    'quantity'        => 1,
                                    'totalPrice'      => 100,
                                    'calculatedTaxes' => [
                                        [
                                            'tax'     => 20,
                                            'taxRate' => 19.0,
                                            'price'   => 100,
                                        ],
                                    ],
                                    'taxRules'        => [
                                        [
                                            'taxRate'    => 20,
                                            'percentage' => 100,
                                        ],
                                    ],
                                ],
                            ]
                        ]
                    ]
                ],
                $context
            );

So klappt es. Ich weiß, da sind vorerst noch zu viele statische Werte, aber zumindest
a) Wird programmatisch jetzt überhaupt importiert
b)Führt es im Backend zu keinem JS Error mehr…

            $this->orderRepository->create(
                [
                    [
                        'id'               => Uuid::randomHex(),
                        'currencyFactor'   => 1,
                        'orderDateTime'    => $createdAt,
                        'orderNumber'      => $arItems2BeUsedCreatingOrders[$i]['OrderNumber'],
                        'stateId'          => $stateID,
                        'currencyId'       => $currencyID,
                        'customerId'       => $customerID,
                        'salesChannelId'   => $salesChannelID,
                        'addresses' => [
                            [
                                'id' =>$adressID,
                                'firstName' => 'First',
                                'lastName' => 'Last',
                                'street' => 'Main St',
                                'zipcode' => '12345',
                                'city' => 'City',
                                'countryId' => $countryID
                            ],
                        ],
                        'billingAddressId' => $adressID,
                        'price'            => [
                            'netPrice'        => 100,
                            'totalPrice'      => 150,
                            'calculatedTaxes' => [
                                                   [
                                                       'tax'     => 20,
                                                       'taxRate' => 19.0,
                                                       'price'   => 100,
                                                   ]
                            ],
                            'taxRules'        => [
                                [
                                    'taxRate'    => 20,
                                    'percentage' => 100,
                                ],
                            ],
                            'positionPrice'   => 100,
                            'rawTotal'        => 100,
                            'taxStatus'       => 'net'
                        ],
                        'itemRounding'     => [
                            'interval'    => 0.01,
                            'decimals'    => 2,
                            'roundForNet' => true,
                        ],
                        'totalRounding'    => [
                            'interval'    => 0.01,
                            'roundForNet' => true,
                            'decimals'    => 2,
                        ],
                        'shippingCosts'    => [
                            'unitPrice'       => 5.00,
                            'totalPrice'      => 5.00,
                            'quantity'        => 1,
                            'calculatedTaxes' => [
                                [
                                    'tax'     => 0.95,
                                    'taxRate' => 19.0,
                                    'price'   => 5.00,
                                ],
                            ],
                            'taxRules'        => [
                                [
                                    'taxRate'    => 20,
                                    'percentage' => 100,
                                ],
                            ],
                        ],
                        'lineItems'        => [
                            [
                                'identifier'      => Uuid::randomHex(),
                                'label'           => 'Product Name',
                                'quantity'        => 1,
                                'type'            => 'product',
                                'priceDefinition' => [
                                    'type'     => 'quantity',
                                    'price'    => 100,
                                    'quantity' => 1,
                                    'taxRules' => [
                                        [
                                            'taxRate'    => 20,
                                            'percentage' => 100,
                                        ],
                                    ],
                                ],
                                'price'           => [
                                    'unitPrice'       => 100,
                                    'quantity'        => 1,
                                    'totalPrice'      => 100,
                                    'calculatedTaxes' => [
                                        [
                                            'tax'     => 20,
                                            'taxRate' => 19.0,
                                            'price'   => 100,
                                        ],
                                    ],
                                    'taxRules'        => [
                                        [
                                            'taxRate'    => 20,
                                            'percentage' => 100,
                                        ],
                                    ],
                                ],
                            ]
                        ]
                    ]
                ],
                $context
            );

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.