mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 12:07:15 +01:00
versandpakete added projekt to lieferungen
This commit is contained in:
parent
7808e48b6c
commit
00276d40bb
@ -283,13 +283,13 @@ class Versandpakete {
|
||||
|
||||
$allowed['versandpakete_lieferscheine'] = array('lieferscheine');
|
||||
|
||||
$heading = array('', '', 'Lieferschein', 'Adresse','Menge','Menge in Versandpaketen','Monitor','Pakete','Paket hinzufügen');
|
||||
$width = array( '1%','1%', '10%', '10%', '10%', '10%', '1%', '1%', '1%'); // Fill out manually later
|
||||
$heading = array('', '', 'Lieferschein', 'Adresse','Menge','Menge in Versandpaketen','Projekt','Monitor','Pakete','Paket hinzufügen');
|
||||
$width = array( '1%','1%', '10%', '10%', '10%', '10%', '5%', '1%', '1%', '1%'); // Fill out manually later
|
||||
|
||||
// columns that are aligned right (numbers etc)
|
||||
// $alignright = array(4,5,6,7,8);
|
||||
|
||||
$findcols = array('id','id','belegnr','name','lmenge','vmenge','(alle_versendet+alle_abgeschlossen*2)','id','id');
|
||||
$findcols = array('id','id','belegnr','name','lmenge','vmenge','projekt','(alle_versendet+alle_abgeschlossen*2)','id','id');
|
||||
$searchsql = array('belegnr','name');
|
||||
|
||||
$defaultorder = 1;
|
||||
@ -1199,6 +1199,7 @@ class Versandpakete {
|
||||
$sql_lieferschein_position = "
|
||||
SELECT
|
||||
l.id,
|
||||
p.abkuerzung AS projekt,
|
||||
l.belegnr,
|
||||
l.name,
|
||||
lp.menge lmenge,
|
||||
@ -1214,6 +1215,7 @@ class Versandpakete {
|
||||
LEFT JOIN versandpaket_lieferschein_position vlp ON vlp.lieferschein_position = lp.id
|
||||
LEFT JOIN versandpakete v ON vlp.versandpaket = v.id
|
||||
LEFT JOIN versandpakete vop ON vop.lieferschein_ohne_pos = l.id
|
||||
LEFT JOIN projekt p ON p.id = l.projekt
|
||||
WHERE
|
||||
l.versand_status <> 0 AND
|
||||
l.belegnr <> '' AND
|
||||
@ -1224,6 +1226,7 @@ class Versandpakete {
|
||||
$sql_lieferschein = "
|
||||
SELECT
|
||||
id,
|
||||
projekt,
|
||||
belegnr,
|
||||
name,
|
||||
SUM(lmenge) lmenge,
|
||||
@ -1247,6 +1250,7 @@ class Versandpakete {
|
||||
name,
|
||||
".$app->erp->FormatMenge("lmenge").",
|
||||
".$app->erp->FormatMenge("vmenge").",
|
||||
projekt,
|
||||
".$app->YUI->IconsSQL_lieferung().",
|
||||
if(vmenge > 0 OR vop IS NOT NULL,CONCAT('<a href=\"index.php?module=versandpakete&action=lieferung&id=',id,'\"><img src=\"themes/{$app->Conf->WFconf['defaulttheme']}/images/forward.svg\" title=\"Pakete anzeigen\" border=\"0\"></a>'),''),
|
||||
id,
|
||||
|
Loading…
Reference in New Issue
Block a user