mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-04 00:19:36 +00:00
Allow to query price infos from conrad
This commit is contained in:
parent
6f4dad98d9
commit
98937974c9
3 changed files with 117 additions and 26 deletions
|
|
@ -53,5 +53,6 @@ class ConradSettings
|
|||
)]
|
||||
public ConradShopIDs $shopID = ConradShopIDs::COM_B2B;
|
||||
|
||||
#[SettingsParameter(label: new TM("settings.ips.reichelt.include_vat"))]
|
||||
public bool $includeVAT = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,6 +100,10 @@ enum ConradShopIDs: string implements TranslatableInterface
|
|||
*/
|
||||
public function getShopID(): string
|
||||
{
|
||||
if ($this === self::CH_B2C_FR || $this === self::CH_B2C_DE) {
|
||||
return 'CQ_CH_B2C';
|
||||
}
|
||||
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue