Merge pull request #104 from exciler/shopware-multiVersion

Make Shopware-Lib compatible with 6.x
This commit is contained in:
OpenXE-ERP 2023-12-10 10:21:55 +01:00 committed by GitHub
commit aabdc74af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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