class.remote sendlistlager condensed

This commit is contained in:
OpenXE 2024-05-24 18:58:32 +02:00
parent d20bbe79b3
commit 57a9aa23ff

View File

@ -2218,7 +2218,7 @@ class Remote
$data2 = $data; $data2 = $data;
foreach ($data2 as $key => $value){ foreach ($data2 as $key => $value){
$data2[$key]['artikel'] = $value['artikelid']; $data2[$key]['artikel'] = $value['artikelid'];
} }
$result = $this->RemoteCommand($id,'sendlistlager',$data2); $result = $this->RemoteCommand($id,'sendlistlager',$data2);
$this->app->DB->Update( $this->app->DB->Update(
sprintf( sprintf(
@ -2286,17 +2286,7 @@ class Remote
}//Altes Verhalten }//Altes Verhalten
} }
if(!$isLagerExported){ if(!$isLagerExported){
$data2 = $data; $this->sendlistlager($i,$id,$data);
foreach ($data2 as $key => $value){
$data2[$key]['artikel'] = $value['artikelid'];
}
$this->RemoteCommand($id,'sendlistlager',$data2);
$this->app->DB->Update(
sprintf(
'UPDATE artikel_onlineshops SET last_storage_transfer = NOW() WHERE artikel = %d AND shop = %d',
$data2[$i]['artikel'], $id
)
);
} }
return $result; return $result;
} }