cronjob lagerzahlen set cache_lagerplatzinhaltmenge only on success

This commit is contained in:
OpenXE
2023-04-27 18:07:08 +02:00
parent 87a884bd8a
commit b497d65d81
2 changed files with 21 additions and 13 deletions
+2 -2
View File
@@ -125,9 +125,9 @@ $firmendatenid = $app->DB->Select("SELECT MAX(id) FROM firmendaten LIMIT 1");
);
try {
if($anzargs > 2){
$message .= $app->erp->LagerSync($articleId, true, $shopByIds);
$message .= $app->erp->LagerSync($articleId, false, $shopByIds); // 2nd parameter is print_echo -> prints via echo to logfile (big print_r)
}else{
$message .= $app->erp->LagerSync($articleId, true);
$message .= $app->erp->LagerSync($articleId, false);
}
}
catch (Exception $exception) {