mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-24 13:40:29 +01:00
bugfix wareneingang bemerkung
This commit is contained in:
parent
a9f3292f8f
commit
be222cc581
@ -1034,17 +1034,17 @@ $lagerartikel = "";
|
||||
$allowed['paketannahme_list'] = array('list');
|
||||
$heading = array('','Paket-Nr.','Datum','Status','Name', 'Kunde', 'Lieferant','Bestellung','LS-Nr.','RE-Nr.', 'Bearbeiter','Bemerkung', 'Menü');
|
||||
$width = array('1%','5%','10%','10%','10%','10%','10%','10%','10%','10%','10%'); // Fill out manually later
|
||||
|
||||
$drop = "'<img src=./themes/new/images/details_open.png class=details>' AS `open`";
|
||||
|
||||
$drop = "'<img src=./themes/new/images/details_open.png class=details>' AS `open`";
|
||||
|
||||
$findcols = array(
|
||||
'paketannahme.id',
|
||||
'paketannahme.id',
|
||||
'paketannahme.id',
|
||||
'paketannahme.datum',
|
||||
'paketannahme.status',
|
||||
'adresse.name',
|
||||
'adresse.kundennummer',
|
||||
'adresse.lieferantennummer',
|
||||
'adresse.lieferantennummer',
|
||||
'bestellung.belegnr',
|
||||
'paketannahme.lsnr',
|
||||
'paketannahme.renr',
|
||||
@ -1058,7 +1058,7 @@ $lagerartikel = "";
|
||||
'paketannahme.datum',
|
||||
'adresse.name',
|
||||
'adresse.kundennummer',
|
||||
'adresse.lieferantennummer',
|
||||
'adresse.lieferantennummer',
|
||||
'bestellung.belegnr',
|
||||
'paketannahme.lsnr',
|
||||
'paketannahme.renr',
|
||||
@ -1071,14 +1071,14 @@ $lagerartikel = "";
|
||||
$menu = "<table cellpadding=0 cellspacing=0><tr><td nowrap>" . "<a href=\"index.php?module=wareneingang&action=distriinhalt&id=%value%\"><img src=\"./themes/{$app->Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\"></a> </td></tr></table>";
|
||||
|
||||
$sql = "SELECT SQL_CALC_FOUND_ROWS
|
||||
paketannahme.id,
|
||||
paketannahme.id,
|
||||
".$drop.",
|
||||
paketannahme.id,
|
||||
DATE_FORMAT(paketannahme.datum, '%d.%m.%Y %H:%i'),
|
||||
paketannahme.status,
|
||||
adresse.name,
|
||||
adresse.kundennummer,
|
||||
adresse.lieferantennummer,
|
||||
adresse.lieferantennummer,
|
||||
GROUP_CONCAT(DISTINCT bestellung.belegnr),
|
||||
paketannahme.lsnr,
|
||||
paketannahme.renr,
|
||||
@ -1087,22 +1087,22 @@ $lagerartikel = "";
|
||||
paketannahme.id
|
||||
FROM paketannahme
|
||||
INNER JOIN adresse
|
||||
ON paketannahme.adresse = adresse.id
|
||||
LEFT JOIN paketdistribution
|
||||
ON paketannahme.id = paketdistribution.paketannahme
|
||||
LEFT JOIN bestellung_position
|
||||
ON paketdistribution.bestellung_position = bestellung_position.id
|
||||
LEFT JOIN bestellung
|
||||
ON paketannahme.adresse = adresse.id
|
||||
LEFT JOIN paketdistribution
|
||||
ON paketannahme.id = paketdistribution.paketannahme
|
||||
LEFT JOIN bestellung_position
|
||||
ON paketdistribution.bestellung_position = bestellung_position.id
|
||||
LEFT JOIN bestellung
|
||||
ON bestellung.id = bestellung_position.bestellung";
|
||||
|
||||
$where = "1";
|
||||
$where = "1";
|
||||
|
||||
$count = "SELECT count(paketannahme.id) FROM paketannahme
|
||||
INNER JOIN adresse
|
||||
ON paketannahme.adresse = adresse.id";
|
||||
$groupby = "GROUP BY paketannahme.id";
|
||||
|
||||
$moreinfo = true; // Allow drop down details
|
||||
|
||||
$moreinfo = true; // Allow drop down details
|
||||
$menucol = 1; // For moredata
|
||||
|
||||
break;
|
||||
@ -1717,9 +1717,9 @@ $lagerartikel = "";
|
||||
$cmd = $this->app->Secure->GetGET('cmd');
|
||||
$lsnr = $this->app->Secure->GetPOST('lsnr');
|
||||
$renr = $this->app->Secure->GetPOST('renr');
|
||||
$bemerkung = $this->app->Secure->GetPOST('bemerkung');
|
||||
|
||||
$bemerkung = str_replace(array('\r\n', '\r', '\n'), "\n", $bemerkung);
|
||||
$bemerkung = $this->app->Secure->GetPOST('bemerkung');
|
||||
|
||||
$bemerkung = str_replace(array('\r\n', '\r', '\n'), "\n", $bemerkung);
|
||||
|
||||
// Load from DB
|
||||
if (($lsnr == '' && $renr == '' && $bemerkung == '') && $id != '') {
|
||||
@ -1742,6 +1742,9 @@ $lagerartikel = "";
|
||||
renr='".$renr."',
|
||||
bemerkung='".$bemerkung."'
|
||||
WHERE id='$id' LIMIT 1");
|
||||
|
||||
$bemerkung = stripslashes($bemerkung);
|
||||
|
||||
}
|
||||
|
||||
$this->app->Tpl->Set('LSNR', $lsnr);
|
||||
@ -1836,17 +1839,17 @@ $lagerartikel = "";
|
||||
}
|
||||
$this->app->Location->execute("index.php?module=wareneingang&action=distrietiketten&id=$id&$col=$pos&menge=$menge&seriennummer=".$seriennummer);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$sql =sprintf(
|
||||
'SELECT `adresse`,%s FROM `paketannahme` WHERE `id` = %d LIMIT 1',
|
||||
$this->app->erp->FormatDate('datum','datum'),
|
||||
'SELECT `adresse`,%s FROM `paketannahme` WHERE `id` = %d LIMIT 1',
|
||||
$this->app->erp->FormatDate('datum','datum'),
|
||||
$id
|
||||
);
|
||||
|
||||
$paketannahme = $this->app->DB->SelectArr($sql)[0];
|
||||
|
||||
$adresse = $paketannahme['adresse'];
|
||||
);
|
||||
|
||||
$paketannahme = $this->app->DB->SelectArr($sql)[0];
|
||||
|
||||
$adresse = $paketannahme['adresse'];
|
||||
$datum = $paketannahme['datum'];
|
||||
|
||||
$addressRow = empty($adresse)?null: $this->app->DB->SelectRow(
|
||||
@ -1979,16 +1982,16 @@ $lagerartikel = "";
|
||||
$table = new EasyTable($this->app);
|
||||
/*$table->Query("SELECT a.nummer, a.name_de as artikel, trim(lb.menge)+0 as menge FROM lager_bewegung lb
|
||||
LEFT JOIN artikel a ON lb.artikel=a.id
|
||||
WHERE lb.paketannahme='$id' ORDER by a.nummer");
|
||||
*/
|
||||
/* See tablesearch... */
|
||||
WHERE lb.paketannahme='$id' ORDER by a.nummer");
|
||||
*/
|
||||
/* See tablesearch... */
|
||||
$table->Query("SELECT SQL_CALC_FOUND_ROWS p.nummer,p.lieferantnummer, p.nummer, p.bestellbezug, p.name, p.menge, p.bemerkung from
|
||||
(SELECT bestellung.belegnr as bestellbezug, bestellung_position.bestellnummer as lieferantnummer ,artikel.nummer as nummer, artikel.name_de as name, ".$this->app->erp->FormatMenge("paketdistribution.menge")." as menge, paketdistribution.bemerkung
|
||||
FROM paketdistribution
|
||||
INNER JOIN artikel ON artikel.id = paketdistribution.artikel
|
||||
LEFT JOIN bestellung_position ON bestellung_position = bestellung_position.id
|
||||
LEFT JOIN bestellung on bestellung_position.bestellung = bestellung.id
|
||||
where paketannahme = $id) as p");
|
||||
where paketannahme = $id) as p");
|
||||
|
||||
$this->app->Tpl->Set('MD5', md5(microtime(true)));
|
||||
$this->app->Tpl->Set('ID', $id);
|
||||
|
Loading…
Reference in New Issue
Block a user