mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 22:20:29 +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');
|
$allowed['versandpakete_lieferscheine'] = array('lieferscheine');
|
||||||
|
|
||||||
$heading = array('', '', 'Lieferschein', 'Adresse','Menge','Menge in Versandpaketen','Monitor','Pakete','Paket hinzufügen');
|
$heading = array('', '', 'Lieferschein', 'Adresse','Menge','Menge in Versandpaketen','Projekt','Monitor','Pakete','Paket hinzufügen');
|
||||||
$width = array( '1%','1%', '10%', '10%', '10%', '10%', '1%', '1%', '1%'); // Fill out manually later
|
$width = array( '1%','1%', '10%', '10%', '10%', '10%', '5%', '1%', '1%', '1%'); // Fill out manually later
|
||||||
|
|
||||||
// columns that are aligned right (numbers etc)
|
// columns that are aligned right (numbers etc)
|
||||||
// $alignright = array(4,5,6,7,8);
|
// $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');
|
$searchsql = array('belegnr','name');
|
||||||
|
|
||||||
$defaultorder = 1;
|
$defaultorder = 1;
|
||||||
@ -1199,6 +1199,7 @@ class Versandpakete {
|
|||||||
$sql_lieferschein_position = "
|
$sql_lieferschein_position = "
|
||||||
SELECT
|
SELECT
|
||||||
l.id,
|
l.id,
|
||||||
|
p.abkuerzung AS projekt,
|
||||||
l.belegnr,
|
l.belegnr,
|
||||||
l.name,
|
l.name,
|
||||||
lp.menge lmenge,
|
lp.menge lmenge,
|
||||||
@ -1214,6 +1215,7 @@ class Versandpakete {
|
|||||||
LEFT JOIN versandpaket_lieferschein_position vlp ON vlp.lieferschein_position = lp.id
|
LEFT JOIN versandpaket_lieferschein_position vlp ON vlp.lieferschein_position = lp.id
|
||||||
LEFT JOIN versandpakete v ON vlp.versandpaket = v.id
|
LEFT JOIN versandpakete v ON vlp.versandpaket = v.id
|
||||||
LEFT JOIN versandpakete vop ON vop.lieferschein_ohne_pos = l.id
|
LEFT JOIN versandpakete vop ON vop.lieferschein_ohne_pos = l.id
|
||||||
|
LEFT JOIN projekt p ON p.id = l.projekt
|
||||||
WHERE
|
WHERE
|
||||||
l.versand_status <> 0 AND
|
l.versand_status <> 0 AND
|
||||||
l.belegnr <> '' AND
|
l.belegnr <> '' AND
|
||||||
@ -1224,6 +1226,7 @@ class Versandpakete {
|
|||||||
$sql_lieferschein = "
|
$sql_lieferschein = "
|
||||||
SELECT
|
SELECT
|
||||||
id,
|
id,
|
||||||
|
projekt,
|
||||||
belegnr,
|
belegnr,
|
||||||
name,
|
name,
|
||||||
SUM(lmenge) lmenge,
|
SUM(lmenge) lmenge,
|
||||||
@ -1247,6 +1250,7 @@ class Versandpakete {
|
|||||||
name,
|
name,
|
||||||
".$app->erp->FormatMenge("lmenge").",
|
".$app->erp->FormatMenge("lmenge").",
|
||||||
".$app->erp->FormatMenge("vmenge").",
|
".$app->erp->FormatMenge("vmenge").",
|
||||||
|
projekt,
|
||||||
".$app->YUI->IconsSQL_lieferung().",
|
".$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>'),''),
|
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,
|
id,
|
||||||
|
Loading…
Reference in New Issue
Block a user