Skip to content

Commit

Permalink
PT-1413: Mondu orders can no longer be loaded if a product referenced… (
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-pugach-mondu authored Jun 6, 2024
1 parent 0dfe6fe commit 59d2b9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mondu/shopware6-payment",
"description": "Mondu payment for Shopware 6",
"version": "1.2.2",
"version": "1.2.3",
"type": "shopware-platform-plugin",
"license": "proprietary",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Order/Subscriber/AdjustOrderSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function onOrderWritten(EntityWrittenEvent $event): void

$lineItems[] = [
'external_reference_id' => $lineItem->getReferencedId(),
'product_id' => $product->getProductNumber(),
'product_id' => $lineItem->getPayload()['productNumber'],
'quantity' => $lineItem->getQuantity(),
'title' => $lineItem->getLabel(),
'net_price_cents' => round($unitNetPrice * $lineItem->getQuantity()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function ($lineItem) {

$lineItems[] = [
'external_reference_id' => $lineItem->getReferencedId(),
'product_id' => $product->getProductNumber(),
'product_id' => $lineItem->getPayload()['productNumber'],
'quantity' => $lineItem->getQuantity(),
'title' => $lineItem->getLabel(),
'net_price_cents' => round($unitNetPrice * $lineItem->getQuantity()),
Expand Down

0 comments on commit 59d2b9e

Please sign in to comment.