mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-15 04:44:36 +02:00
Allow to get prices in non-EUR currencies from reichelt
This commit is contained in:
parent
d05c0579a2
commit
c51e0eb68f
2 changed files with 7 additions and 2 deletions
|
@ -48,7 +48,9 @@ class ReicheltProvider implements InfoProviderInterface
|
|||
#[Autowire(env: "PROVIDER_REICHELT_COUNTRY")]
|
||||
private readonly string $country = "DE",
|
||||
#[Autowire(env: "PROVIDER_REICHELT_INCLUDE_VAT")]
|
||||
private bool $includeVAT = false
|
||||
private readonly bool $includeVAT = false,
|
||||
#[Autowire(env: "PROVIDER_REICHELT_CURRENCY")]
|
||||
private readonly string $currency = "EUR",
|
||||
)
|
||||
{
|
||||
}
|
||||
|
@ -134,6 +136,7 @@ class ReicheltProvider implements InfoProviderInterface
|
|||
$response = $this->client->request('GET', $productPage, [
|
||||
'query' => [
|
||||
'CCTYPE' => $this->includeVAT ? 'private' : 'business',
|
||||
'currency' => $this->currency,
|
||||
],
|
||||
]);
|
||||
$html = $response->getContent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue