Fixed problem that first batch price was not included

This commit is contained in:
Jan Böhmer 2025-02-20 16:33:37 +01:00
parent 5e40519bc5
commit d05c0579a2

View file

@ -156,9 +156,9 @@ class ReicheltProvider implements InfoProviderInterface
$purchaseInfo = new PurchaseInfoDTO(
distributor_name: self::DISTRIBUTOR_NAME,
order_number: $json[0]['article_artnr'],
prices: [
new PriceDTO(1.0, $priceString, $currency, $this->includeVAT)
] + $this->parseBatchPrices($dom, $currency),
prices: array_merge(
[new PriceDTO(1.0, $priceString, $currency, $this->includeVAT)]
, $this->parseBatchPrices($dom, $currency)),
product_url: $productPage
);