Skip to content

Commit d05c057

Browse files
committed
Fixed problem that first batch price was not included
1 parent 5e40519 commit d05c057

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Services/InfoProviderSystem/Providers/ReicheltProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ public function getDetails(string $id): PartDetailDTO
156156
$purchaseInfo = new PurchaseInfoDTO(
157157
distributor_name: self::DISTRIBUTOR_NAME,
158158
order_number: $json[0]['article_artnr'],
159-
prices: [
160-
new PriceDTO(1.0, $priceString, $currency, $this->includeVAT)
161-
] + $this->parseBatchPrices($dom, $currency),
159+
prices: array_merge(
160+
[new PriceDTO(1.0, $priceString, $currency, $this->includeVAT)]
161+
, $this->parseBatchPrices($dom, $currency)),
162162
product_url: $productPage
163163
);
164164

0 commit comments

Comments
 (0)