Skip to content

Commit

Permalink
Lager LagerBuchenEinlagern corrected misleading message "Regal gibt e…
Browse files Browse the repository at this point in the history
…s nicht"
  • Loading branch information
OpenXE committed Feb 13, 2023
1 parent 2397fda commit 1e371e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions www/pages/lager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2182,7 +2182,6 @@ function LagerBuchenEinlagern() {
$alles_komplett++;
}


$artikel_tmp = $this->app->DB->Select("SELECT id FROM artikel WHERE nummer='$nummer' AND nummer!='' AND geloescht!=1 AND lagerartikel=1 LIMIT 1");
$ean = $this->app->DB->Select("SELECT id FROM artikel WHERE ean='$nummer' AND ean!='' AND geloescht!=1 AND lagerartikel=1 LIMIT 1");
if($artikel_tmp <=0 && $ean > 0)
Expand All @@ -2201,10 +2200,14 @@ function LagerBuchenEinlagern() {

// gibts regal
$regalcheck = $this->app->DB->Select("SELECT id FROM lager_platz WHERE id='$regal' LIMIT 1");
if ($regalcheck != $regal || $regal == '' || $regal == 0) {
if ($regalcheck != $regal) {
$grund.= "<li>Regal gibt es nicht!</li>";
$alles_komplett++;
}
if ($regal == '' || $regal == 0) {
$grund.= "<li>Bitte Regal angeben.</li>";
$alles_komplett++;
}

if ($alles_komplett > 0 && $regal != '') {
$this->app->Tpl->Set('MESSAGELAGER', "<div class=\"error\">Artikel wurde nicht gebucht! Grund:<ul>$grund</ul> </div>");
Expand Down

0 comments on commit 1e371e7

Please sign in to comment.