Shopware6: remove "v2" part from URL in Client-lib as well, set pseudolager default to 0 instead of empty string

This commit is contained in:
Andreas Palm 2023-01-31 12:14:56 +01:00
parent 76c770aba3
commit 4dd8b01ea9
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ final class Shopware6Client
$request = new ClientRequest(
$method,
$this->url . 'v2/' . $endpoint,
$this->url . $endpoint,
$headerInformation,
empty($body) ? null : json_encode($body)
);

View File

@ -22527,7 +22527,7 @@ function ChargenMHDAuslagern($artikel, $menge, $lagerplatztyp, $lpid,$typ,$wert,
$pseudolager = !empty($shopAricleArr['pseudolager'])?(float)$shopAricleArr['pseudolager']:0;
}
else {
$pseudolager = '';
$pseudolager = 0;
}
$this->app->erp->RunHook('remote_send_article_list_pseudostorage', 3, $shop, $artikelid, $pseudolager);
if(is_numeric($pseudolager) && $pseudolager < 0) {