mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 04:27:14 +01:00
Merge branch 'develop'
This commit is contained in:
commit
68965e87cd
@ -7018,12 +7018,28 @@ title: 'Abschicken',
|
|||||||
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Produktion','produktion','list');
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Produktion','produktion','list');
|
||||||
|
|
||||||
$navarray['menu']['admin'][++$menu]['first'] = array('Wareneingang','wareneingang','paketannahme');
|
$navarray['menu']['admin'][++$menu]['first'] = array('Lager','lager','list');
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Paket Annahme','wareneingang','paketannahme');
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Wareneingang','wareneingang','list');
|
||||||
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Lieferschein','lieferschein','list');
|
||||||
if($this->Firmendaten("wareneingang_gross")=="1"){
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Lagerverwaltung','lager','list');
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Paket Distribution', 'wareneingang', 'distribution');
|
if($this->ModulVorhanden('lagermobil')) {
|
||||||
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Mobile Lagerverwaltung','lagermobil','list');
|
||||||
}
|
}
|
||||||
|
if($this->ModulVorhanden('multiorderpicking')) {
|
||||||
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Multiorder-Picking','multiorderpicking','list');
|
||||||
|
}
|
||||||
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Reservierungen','lager','reservierungen');
|
||||||
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Inventur','inventur','list');
|
||||||
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Versandzentrum','versanderzeugen','offene');
|
||||||
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Produktionszentrum','produktionszentrum','list');
|
||||||
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Kommissionieraufkleber','kommissionieraufkleber','list');
|
||||||
|
|
||||||
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Mindesthaltbarkeit','mhdwarning','list');
|
||||||
|
|
||||||
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Lagermindestmengen','lagermindestmengen','list');
|
||||||
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Artikelkontingente','artikelkontingente','list');
|
||||||
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Ein- und auslagern','lager','bucheneinlagern');
|
||||||
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Zwischenlager','lager','buchenzwischenlager');
|
||||||
|
|
||||||
$navarray['menu']['admin'][++$menu]['first'] = array('Buchhaltung','rechnung','list');
|
$navarray['menu']['admin'][++$menu]['first'] = array('Buchhaltung','rechnung','list');
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Rechnungen','rechnung','list');
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Rechnungen','rechnung','list');
|
||||||
@ -7085,28 +7101,6 @@ title: 'Abschicken',
|
|||||||
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Etikettendrucker','etikettendrucker','list');
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Etikettendrucker','etikettendrucker','list');
|
||||||
|
|
||||||
$navarray['menu']['admin'][++$menu]['first'] = array('Lager','lager','list');
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Lieferschein','lieferschein','list');
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Lagerverwaltung','lager','list');
|
|
||||||
if($this->ModulVorhanden('lagermobil')) {
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Mobile Lagerverwaltung','lagermobil','list');
|
|
||||||
}
|
|
||||||
if($this->ModulVorhanden('multiorderpicking')) {
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Multiorder-Picking','multiorderpicking','list');
|
|
||||||
}
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Reservierungen','lager','reservierungen');
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Inventur','inventur','list');
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Versandzentrum','versanderzeugen','offene');
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Produktionszentrum','produktionszentrum','list');
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Kommissionieraufkleber','kommissionieraufkleber','list');
|
|
||||||
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Mindesthaltbarkeit','mhdwarning','list');
|
|
||||||
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Lagermindestmengen','lagermindestmengen','list');
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Artikelkontingente','artikelkontingente','list');
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Ein- und auslagern','lager','bucheneinlagern');
|
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Zwischenlager','lager','buchenzwischenlager');
|
|
||||||
|
|
||||||
$navarray['menu']['admin'][++$menu]['first'] = array('System','rechnung','list');
|
$navarray['menu']['admin'][++$menu]['first'] = array('System','rechnung','list');
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Einstellungen','einstellungen','list');
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Einstellungen','einstellungen','list');
|
||||||
$navarray['menu']['admin'][$menu]['sec'][] = array('Online-Shops / Marktplätze','onlineshops','list');
|
$navarray['menu']['admin'][$menu]['sec'][] = array('Online-Shops / Marktplätze','onlineshops','list');
|
||||||
@ -18981,14 +18975,14 @@ function SendPaypalFromAuftrag($auftrag, $test = false)
|
|||||||
$dbformat = 1;
|
$dbformat = 1;
|
||||||
$id = $value;
|
$id = $value;
|
||||||
if($id > 0){
|
if($id > 0){
|
||||||
$abkuerzung = $this->app->DB->Select("SELECT bezeichnung FROM steuerregelngruppe WHERE id='$id' LIMIT 1");
|
// Removed, table does not exist $abkuerzung = $this->app->DB->Select("SELECT bezeichnung FROM steuerregelngruppe WHERE id='$id' LIMIT 1");
|
||||||
}else{
|
}else{
|
||||||
$abkuerzung = '';
|
$abkuerzung = '';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$dbformat = 0;
|
$dbformat = 0;
|
||||||
$value = $this->app->DB->real_escape_string($value);
|
$value = $this->app->DB->real_escape_string($value);
|
||||||
$id = $this->app->DB->Select("SELECT id FROM steuerregelngruppe WHERE bezeichnung = '$value' ORDER BY aktiv = 1 DESC LIMIT 1");
|
// Removed, table does not exist $id = $this->app->DB->Select("SELECT id FROM steuerregelngruppe WHERE bezeichnung = '$value' ORDER BY aktiv = 1 DESC LIMIT 1");
|
||||||
if($id <=0) $id=0;
|
if($id <=0) $id=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<tr valign="top"><td><b>{|Nummer|}:</b></td><td>[NUMMER]</td></tr>
|
<tr valign="top"><td><b>{|Nummer|}:</b></td><td>[NUMMER]</td></tr>
|
||||||
[BILDERFASSENSTART]
|
[BILDERFASSENSTART]
|
||||||
<tr valign="top"><td><br></td><td align="center"></td></tr>
|
<tr valign="top"><td><br></td><td align="center"></td></tr>
|
||||||
<tr valign="top"><td><b>{|Bild erfassen|}:</b></td><td> <input name="wareneingangartikelbild" type="file" /></td></tr>
|
<tr valign="top"><td><b>{|Bild für Artikelstammdaten erfassen|}:</b></td><td> <input name="wareneingangartikelbild" type="file" /></td></tr>
|
||||||
<tr valign="top"><td><b>{|Bildtyp|}:</b></td><td><select name="bildtyp">[BILDTYPEN]</select></td></tr>
|
<tr valign="top"><td><b>{|Bildtyp|}:</b></td><td><select name="bildtyp">[BILDTYPEN]</select></td></tr>
|
||||||
[BILDERFASSENENDE]
|
[BILDERFASSENENDE]
|
||||||
<tr valign="top"><td><br></td><td align="center"></td></tr>
|
<tr valign="top"><td><br></td><td align="center"></td></tr>
|
5
www/pages/content/wareneingang_list.tpl
Normal file
5
www/pages/content/wareneingang_list.tpl
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<div id="tabs-1">
|
||||||
|
[MESSAGE]
|
||||||
|
[TAB1]
|
||||||
|
[TAB1NEXT]
|
||||||
|
</div>
|
@ -5,7 +5,7 @@
|
|||||||
<tr valign="top" colspan="3">
|
<tr valign="top" colspan="3">
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<div class="info">Der Artikel ist für einen Mitarbeiter.</div>
|
<div class="info">Dies ist kein Lagerartikel.</div>
|
||||||
[MESSAGE]
|
[MESSAGE]
|
||||||
<br><br>
|
<br><br>
|
||||||
<table width="60%" style="background-color: #fff; border: solid 1px #000;" align="center">
|
<table width="60%" style="background-color: #fff; border: solid 1px #000;" align="center">
|
||||||
@ -15,12 +15,12 @@
|
|||||||
|
|
||||||
<table height="200" border="0" width="450">
|
<table height="200" border="0" width="450">
|
||||||
<tr valign="top"><td><b>Artikel:</b></td><td><u>[NAME]</u></td></tr>
|
<tr valign="top"><td><b>Artikel:</b></td><td><u>[NAME]</u></td></tr>
|
||||||
<tr valign="top"><td>Lieferant:</td><td>[LIEFERANT]</td></tr>
|
<!--<tr valign="top"><td>Lieferant:</td><td>[LIEFERANT]</td></tr> -->
|
||||||
<tr valign="top"><td><br></td><td align="center"></td></tr>
|
<tr valign="top"><td><br></td><td align="center"></td></tr>
|
||||||
<tr valign="top"><td><b>Bemerkung:</b></td><td><textarea cols="35" rows="2" name="bemerkung">[BEMERKUNG]</textarea>
|
<tr valign="top"><td><b>Bemerkung:</b></td><td><textarea cols="35" rows="2" name="bemerkung">[BEMERKUNG]</textarea>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr valign="top"><td><br></td><td align="center"></td></tr>
|
<tr valign="top"><td><br></td><td align="center"></td></tr>
|
||||||
<tr valign="top"><td nowrap><b>1. Schritt:</b></td><td>Artikel zu Mitarbeiter [MITARBEITER] bringen
|
<tr valign="top"><td nowrap><b>Anmerkung:</b></td><td>Artikel zu Mitarbeiter [MITARBEITER] bringen
|
||||||
[DISPLAY_WARENEINGANG_RMA_HOOK1]
|
[DISPLAY_WARENEINGANG_RMA_HOOK1]
|
||||||
<tr valign="top"><td><br></td><td align="center"><input type="submit" name="submit" value="Speichern" /> <input type="button" onclick="window.location.href='index.php?module=wareneingang&action=distriinhalt&id=[ID]'" value="Abbrechen" /></td></tr>
|
<tr valign="top"><td><br></td><td align="center"><input type="submit" name="submit" value="Speichern" /> <input type="button" onclick="window.location.href='index.php?module=wareneingang&action=distriinhalt&id=[ID]'" value="Abbrechen" /></td></tr>
|
||||||
</td></tr>
|
</td></tr>
|
@ -15,11 +15,20 @@
|
|||||||
[TAB1START]
|
[TAB1START]
|
||||||
|
|
||||||
[MESSAGE1]
|
[MESSAGE1]
|
||||||
|
<form action="" method="post">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="row-height">
|
<div class="row-height">
|
||||||
<div class="col-xs-12 col-md-10 col-md-height">
|
<div class="col-xs-12 col-md-10 col-md-height">
|
||||||
<div class="inside-white inside-full-height">
|
<div class="inside inside-full-height">
|
||||||
[TAB1]
|
<fieldset>
|
||||||
|
<legend>{|[LEGENDE]|}</legend>
|
||||||
|
<table>
|
||||||
|
<tr><td>{|Lieferschein-Nr.|}:</td><td><input type=text size="40" name="lsnr" value=[LSNR]></td></tr>
|
||||||
|
<tr><td>{|Rechnung-Nr.|}:</td><td><input type=text size="40" name="renr" value=[RENR]></td></tr>
|
||||||
|
<tr><td>{|Bemerkung|}:</td><td><textarea rows="5" cols="40" name="bemerkung">[BEMERKUNG]</textarea></td></tr>
|
||||||
|
<tr><td><input type="submit" name="speichern" class="btnGreenNew" value="Speichern"></td>
|
||||||
|
</table>
|
||||||
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-md-2 col-md-height">
|
<div class="col-xs-12 col-md-2 col-md-height">
|
||||||
@ -28,7 +37,6 @@
|
|||||||
<legend>{|Aktionen|}</legend>
|
<legend>{|Aktionen|}</legend>
|
||||||
[BUTTONS]
|
[BUTTONS]
|
||||||
[BEFOREFRM]
|
[BEFOREFRM]
|
||||||
<form action="" method="post">
|
|
||||||
[AFTERFRM]
|
[AFTERFRM]
|
||||||
[DISTRIINHALTBUTTONS]
|
[DISTRIINHALTBUTTONS]
|
||||||
<input type="submit" name="abschliessen" id="btnabschliessen" class="btnGreenNew" value="Paketinhalt ist erfasst">
|
<input type="submit" name="abschliessen" id="btnabschliessen" class="btnGreenNew" value="Paketinhalt ist erfasst">
|
||||||
@ -36,13 +44,31 @@
|
|||||||
<input type="submit" name="manuellerfassen" class="btnBlueNew" value="Artikel manuell erfassen">
|
<input type="submit" name="manuellerfassen" class="btnBlueNew" value="Artikel manuell erfassen">
|
||||||
[AFTERMANUELLERFASSEN]
|
[AFTERMANUELLERFASSEN]
|
||||||
[BEFOREFRM]
|
[BEFOREFRM]
|
||||||
</form>
|
|
||||||
[AFTERFRM]
|
[AFTERFRM]
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="row-height">
|
||||||
|
<div class="col-xs-12 col-md-10 col-md-height">
|
||||||
|
<div class="inside-white inside-full-height">
|
||||||
|
[TAB1]
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="row-height">
|
||||||
|
<div class="col-xs-12 col-md-10 col-md-height">
|
||||||
|
<div class="inside-white inside-full-height">
|
||||||
|
[TAB1_SECOND]
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
[TAB1ENDE]
|
[TAB1ENDE]
|
||||||
</div>
|
</div>
|
||||||
[AFTERTAB1]
|
[AFTERTAB1]
|
@ -116,7 +116,7 @@ class Wareneingang
|
|||||||
$wareneingangauftragzubestellung = $this->app->erp->Firmendaten('wareneingangauftragzubestellung');
|
$wareneingangauftragzubestellung = $this->app->erp->Firmendaten('wareneingangauftragzubestellung');
|
||||||
if($wareneingangauftragzubestellung)
|
if($wareneingangauftragzubestellung)
|
||||||
{
|
{
|
||||||
$heading = array('Bestellnummer', 'Nummer', 'Bestellung', 'Beschreibung', 'Lieferdatum', 'Projekt', 'Menge', 'Geliefert', 'Offen', 'Auftrag', 'Menge', 'Aktion');
|
$heading = array('Lieferant-Art.-Nr.', 'Art.-Nummer', 'Bestellung', 'Beschreibung', 'Lieferdatum', 'Projekt', 'Menge', 'Geliefert', 'Offen', 'Auftrag', 'Menge', 'Aktion');
|
||||||
$width = array('5%', '5%', '5%', '30%', '5%', '5%', '5%', '5%', '5%', '5%', '5%', '5%');
|
$width = array('5%', '5%', '5%', '30%', '5%', '5%', '5%', '5%', '5%', '5%', '5%', '5%');
|
||||||
$findcols = array('bp.bestellnummer', 'art.nummer', 'b.belegnr',
|
$findcols = array('bp.bestellnummer', 'art.nummer', 'b.belegnr',
|
||||||
"CONCAT(art.name_de,'<br>Bei Lieferant: ',bp.bezeichnunglieferant,
|
"CONCAT(art.name_de,'<br>Bei Lieferant: ',bp.bezeichnunglieferant,
|
||||||
@ -133,7 +133,7 @@ class Wareneingang
|
|||||||
IF(b.bestaetigteslieferdatum != '' AND b.bestaetigteslieferdatum IS NOT NULL AND b.bestaetigteslieferdatum != '0000-00-00', CONCAT('<br>Best. Lieferdatum: ',DATE_FORMAT(b.bestaetigteslieferdatum, '%d.%m.%Y')),'')
|
IF(b.bestaetigteslieferdatum != '' AND b.bestaetigteslieferdatum IS NOT NULL AND b.bestaetigteslieferdatum != '0000-00-00', CONCAT('<br>Best. Lieferdatum: ',DATE_FORMAT(b.bestaetigteslieferdatum, '%d.%m.%Y')),'')
|
||||||
)", "if(bp.lieferdatum,DATE_FORMAT(bp.lieferdatum,'%d.%m.%Y'),'sofort')", 'p.abkuerzung', 'bp.menge', 'bp.geliefert',"if((SELECT COUNT(auf2.id) FROM auftrag auf2 INNER JOIN auftrag_position ap2 ON auf2.id = ap2.auftrag WHERE bp.auftrag_position_id = ap2.id ) > 0,(SELECT auf2.belegnr FROM auftrag auf2 INNER JOIN auftrag_position ap2 ON auf2.id = ap2.auftrag WHERE bp.auftrag_position_id = ap2.id ORDER BY belegnr LIMIT 1),'-' )");
|
)", "if(bp.lieferdatum,DATE_FORMAT(bp.lieferdatum,'%d.%m.%Y'),'sofort')", 'p.abkuerzung', 'bp.menge', 'bp.geliefert',"if((SELECT COUNT(auf2.id) FROM auftrag auf2 INNER JOIN auftrag_position ap2 ON auf2.id = ap2.auftrag WHERE bp.auftrag_position_id = ap2.id ) > 0,(SELECT auf2.belegnr FROM auftrag auf2 INNER JOIN auftrag_position ap2 ON auf2.id = ap2.auftrag WHERE bp.auftrag_position_id = ap2.id ORDER BY belegnr LIMIT 1),'-' )");
|
||||||
}else{
|
}else{
|
||||||
$heading = array('Bestellnummer', 'Nummer', 'Bestellung', 'Beschreibung', 'Lieferdatum', 'Projekt', 'Menge', 'Geliefert', 'Offen', 'Aktion');
|
$heading = array('Lieferant-Art.-Nr.', 'Art.-Nummer', 'Bestellung', 'Beschreibung', 'Lieferdatum', 'Projekt', 'Menge', 'Geliefert', 'Offen', 'Aktion');
|
||||||
$width = array('5%', '5%', '5%', '30%', '5%', '5%', '5%', '5%', '5%', '5%');
|
$width = array('5%', '5%', '5%', '30%', '5%', '5%', '5%', '5%', '5%', '5%');
|
||||||
$findcols = array('bp.bestellnummer', 'art.nummer', 'b.belegnr',
|
$findcols = array('bp.bestellnummer', 'art.nummer', 'b.belegnr',
|
||||||
"CONCAT(art.name_de,'<br>Bei Lieferant: ',bp.bezeichnunglieferant,
|
"CONCAT(art.name_de,'<br>Bei Lieferant: ',bp.bezeichnunglieferant,
|
||||||
@ -969,6 +969,124 @@ class Wareneingang
|
|||||||
$count = "SELECT COUNT(lp.id) FROM lieferschein_position lp
|
$count = "SELECT COUNT(lp.id) FROM lieferschein_position lp
|
||||||
LEFT JOIN lieferschein l ON lp.lieferschein=l.id LEFT JOIN projekt p ON l.projekt=p.id LEFT JOIN artikel a ON a.id=lp.artikel WHERE ($where)";
|
LEFT JOIN lieferschein l ON lp.lieferschein=l.id LEFT JOIN projekt p ON l.projekt=p.id LEFT JOIN artikel a ON a.id=lp.artikel WHERE ($where)";
|
||||||
$moreinfo = false;
|
$moreinfo = false;
|
||||||
|
break;
|
||||||
|
case 'paketdistribution_list':
|
||||||
|
$allowed['paketdistribution_list'] = array('list');
|
||||||
|
/* $heading = array('bearbeiter', 'zeit', 'paketannahme', 'adresse', 'artikel', 'menge', 'vpe', 'etiketten', 'bemerkung', 'bestellung_position', 'logdatei', 'retoure_position', 'Menü');
|
||||||
|
$width = array('10%'); // Fill out manually later
|
||||||
|
|
||||||
|
$findcols = array('bearbeiter', 'zeit', 'paketannahme', 'adresse', 'artikel', 'menge', 'vpe', 'etiketten', 'bemerkung', 'bestellung_position', 'logdatei', 'retoure_position');
|
||||||
|
$searchsql = array('bearbeiter', 'zeit', 'paketannahme', 'adresse', 'artikel', 'menge', 'vpe', 'etiketten', 'bemerkung', 'bestellung_position', 'logdatei', 'retoure_position');
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
$heading = array('Lieferant-Art.-Nr.','Art.-Nummer','Bestellung', 'Beschreibung', 'Menge','Bemerkung','');
|
||||||
|
$width = array('5%', '5%', '5%', '30%', '5%','5%','45%');
|
||||||
|
|
||||||
|
$findcols = array('p.nummer','p.bestellbezug','p.name', 'p.menge','p.bemerkung');
|
||||||
|
$searchsql = array('p.nummer','p.name','p.bemerkung');
|
||||||
|
|
||||||
|
$defaultorder = 1;
|
||||||
|
$defaultorderdesc = 0;
|
||||||
|
|
||||||
|
/*$sql = "SELECT 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("sum(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 GROUP BY bestellung_position, paketdistribution.artikel) as p";*/
|
||||||
|
|
||||||
|
$sql = "SELECT 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 = "";
|
||||||
|
$count = "SELECT count(DISTINCT artikel) FROM paketdistribution p WHERE paketannahme = $id";
|
||||||
|
// $groupby = "";
|
||||||
|
|
||||||
|
break;
|
||||||
|
case "paketannahme_list":
|
||||||
|
/* $allowed['paketdistribution_list'] = array('list');
|
||||||
|
$heading = array('bearbeiter', 'zeit', 'paketannahme', 'adresse', 'artikel', 'menge', 'vpe', 'etiketten', 'bemerkung', 'bestellung_position', 'logdatei', 'retoure_position', 'Menü');
|
||||||
|
$width = array('10%'); // Fill out manually later
|
||||||
|
|
||||||
|
$findcols = array('bearbeiter', 'zeit', 'paketannahme', 'adresse', 'artikel', 'menge', 'vpe', 'etiketten', 'bemerkung', 'bestellung_position', 'logdatei', 'retoure_position');
|
||||||
|
$searchsql = array('bearbeiter', 'zeit', 'paketannahme', 'adresse', 'artikel', 'menge', 'vpe', 'etiketten', 'bemerkung', 'bestellung_position', 'logdatei', 'retoure_position');
|
||||||
|
|
||||||
|
$defaultorder = 1;
|
||||||
|
$defaultorderdesc = 0;
|
||||||
|
|
||||||
|
$menu = "<table cellpadding=0 cellspacing=0><tr><td nowrap>" . "<a href=\"index.php?module=paketdistribution&action=edit&id=%value%\"><img src=\"./themes/{$app->Conf->WFconf['defaulttheme']}/images/edit.png\" border=\"0\"></a> <a href=\"#\" onclick=DeleteDialog(\"index.php?module=paketdistribution&action=delete&id=%value%\");>" . "<img src=\"themes/{$app->Conf->WFconf['defaulttheme']}/images/delete.svg\" border=\"0\"></a>" . "</td></tr></table>";
|
||||||
|
|
||||||
|
$sql = "SELECT id, bearbeiter, zeit, paketannahme, adresse, artikel, menge, vpe, etiketten, bemerkung, bestellung_position, logdatei, retoure_position, id FROM paketdistribution";
|
||||||
|
|
||||||
|
$where = "1";
|
||||||
|
$count = "SELECT count(DISTINCT id) FROM paketdistribution WHERE $where";
|
||||||
|
// $groupby = "";
|
||||||
|
*/
|
||||||
|
$allowed['paketannahme_list'] = array('list');
|
||||||
|
$heading = array('Paket-Nr.','Datum','Status','Name', 'Kunde', 'Lieferant','LS-Nr.','RE-Nr.', 'Bearbeiter','Bemerkung', 'Menü');
|
||||||
|
$width = array('5%','10%','10%','10%','10%','10%','10%','10%','10%'); // Fill out manually later
|
||||||
|
|
||||||
|
$findcols = array(
|
||||||
|
'paketannahme.id',
|
||||||
|
'paketannahme.datum',
|
||||||
|
'paketannahme.status',
|
||||||
|
'adresse.name',
|
||||||
|
'adresse.kundennummer',
|
||||||
|
'adresse.lieferantennummer',
|
||||||
|
'paketannahme.lsnr',
|
||||||
|
'paketannahme.renr',
|
||||||
|
'paketannahme.bearbeiter',
|
||||||
|
'paketannahme.datum',
|
||||||
|
'paketannahme.bemerkung',
|
||||||
|
'paketannahme.id');
|
||||||
|
|
||||||
|
$searchsql = array(
|
||||||
|
'paketannahme.status',
|
||||||
|
'paketannahme.datum',
|
||||||
|
'adresse.name',
|
||||||
|
'adresse.kundennummer',
|
||||||
|
'adresse.lieferantennummer',
|
||||||
|
'paketannahme.lsnr',
|
||||||
|
'paketannahme.renr',
|
||||||
|
'paketannahme.bearbeiter',
|
||||||
|
'paketannahme.bemerkung');
|
||||||
|
|
||||||
|
$defaultorder = 6;
|
||||||
|
$defaultorderdesc = 0;
|
||||||
|
|
||||||
|
$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.png\" border=\"0\"></a> </td></tr></table>";
|
||||||
|
|
||||||
|
$sql = "SELECT
|
||||||
|
paketannahme.id,
|
||||||
|
paketannahme.id,
|
||||||
|
DATE_FORMAT(paketannahme.datum, '%d.%m.%Y %H:%i'),
|
||||||
|
paketannahme.status,
|
||||||
|
adresse.name,
|
||||||
|
adresse.kundennummer,
|
||||||
|
adresse.lieferantennummer,
|
||||||
|
paketannahme.lsnr,
|
||||||
|
paketannahme.renr,
|
||||||
|
paketannahme.bearbeiter,
|
||||||
|
paketannahme.bemerkung,
|
||||||
|
paketannahme.id
|
||||||
|
FROM paketannahme
|
||||||
|
INNER JOIN adresse
|
||||||
|
ON paketannahme.adresse = adresse.id";
|
||||||
|
|
||||||
|
$where = "1";
|
||||||
|
$count = "SELECT count(paketannahme.id) FROM paketannahme
|
||||||
|
INNER JOIN adresse
|
||||||
|
ON paketannahme.adresse = adresse.id";
|
||||||
|
// $groupby = "";
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1001,12 +1119,13 @@ class Wareneingang
|
|||||||
}
|
}
|
||||||
$this->app->ActionHandlerInit($this);
|
$this->app->ActionHandlerInit($this);
|
||||||
|
|
||||||
$this->app->ActionHandler("main","WareneingangMain");
|
// $this->app->ActionHandler("main","WareneingangMain");
|
||||||
$this->app->ActionHandler("list","WareneingangList");
|
$this->app->ActionHandler("list","WareneingangList");
|
||||||
$this->app->ActionHandler("help","WareneingangHelp");
|
// $this->app->ActionHandler("help","WareneingangHelp");
|
||||||
$this->app->ActionHandler("vorgang","VorgangAnlegen");
|
// $this->app->ActionHandler("vorgang","VorgangAnlegen");
|
||||||
$this->app->ActionHandler("removevorgang","VorgangEntfernen");
|
// $this->app->ActionHandler("removevorgang","VorgangEntfernen");
|
||||||
//$this->app->ActionHandler("create","WareneingangCreate");
|
//$this->app->ActionHandler("create","WareneingangCreate");
|
||||||
|
$this->app->ActionHandler("create","WareneingangPaketannahme");
|
||||||
$this->app->ActionHandler("paketannahme","WareneingangPaketannahme");
|
$this->app->ActionHandler("paketannahme","WareneingangPaketannahme");
|
||||||
$this->app->ActionHandler("paketzustand","WareneingangPaketZustand");
|
$this->app->ActionHandler("paketzustand","WareneingangPaketZustand");
|
||||||
$this->app->ActionHandler("paketetikett","WareneingangPaketEtikett");
|
$this->app->ActionHandler("paketetikett","WareneingangPaketEtikett");
|
||||||
@ -1020,7 +1139,7 @@ class Wareneingang
|
|||||||
$this->app->ActionHandler("stornieren","WareneingangStornieren");
|
$this->app->ActionHandler("stornieren","WareneingangStornieren");
|
||||||
$this->app->ActionHandler("settings","WareneingangSettings");
|
$this->app->ActionHandler("settings","WareneingangSettings");
|
||||||
|
|
||||||
$this->app->DefaultActionHandler("login");
|
$this->app->DefaultActionHandler("list");
|
||||||
$this->app->erp->Headlines('Wareneinang');
|
$this->app->erp->Headlines('Wareneinang');
|
||||||
|
|
||||||
$this->app->ActionHandlerListen($app);
|
$this->app->ActionHandlerListen($app);
|
||||||
@ -1102,7 +1221,8 @@ class Wareneingang
|
|||||||
$action = $this->app->Secure->GetGET('action');
|
$action = $this->app->Secure->GetGET('action');
|
||||||
$this->app->Tpl->Set('ID',$id);
|
$this->app->Tpl->Set('ID',$id);
|
||||||
$this->app->Tpl->Add('KURZUEBERSCHRIFT',' Paketannahme');
|
$this->app->Tpl->Add('KURZUEBERSCHRIFT',' Paketannahme');
|
||||||
$this->app->erp->MenuEintrag('index.php?module=wareneingang&action=paketannahme','Paketannahme');
|
$this->app->erp->MenuEintrag('index.php?module=wareneingang&action=paketannahme','Neu');
|
||||||
|
$this->app->erp->MenuEintrag('index.php?module=wareneingang&action=list','Übersicht');
|
||||||
$this->app->erp->RunMenuHook('wareneingangpaket');
|
$this->app->erp->RunMenuHook('wareneingangpaket');
|
||||||
$this->app->erp->MenuEintrag(
|
$this->app->erp->MenuEintrag(
|
||||||
'index.php?module=wareneingang&action=settings&menu=paket',
|
'index.php?module=wareneingang&action=settings&menu=paket',
|
||||||
@ -1572,13 +1692,47 @@ class Wareneingang
|
|||||||
|
|
||||||
public function WareneingangPaketDistriInhalt()
|
public function WareneingangPaketDistriInhalt()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$this->WareneingangPaketMenu();
|
||||||
|
|
||||||
|
$id = $this->app->Secure->GetGET('id');
|
||||||
$cmd = $this->app->Secure->GetGET('cmd');
|
$cmd = $this->app->Secure->GetGET('cmd');
|
||||||
|
$lsnr = $this->app->Secure->GetPOST('lsnr');
|
||||||
|
$renr = $this->app->Secure->GetPOST('renr');
|
||||||
|
$bemerkung = $this->app->Secure->GetPOST('bemerkung');
|
||||||
|
|
||||||
|
// Load from DB
|
||||||
|
if (($lsnr == '' && $renr == '' && $bemerkung == '') && $id != '') {
|
||||||
|
$fields = $this->app->DB->SelectArr(
|
||||||
|
sprintf(
|
||||||
|
'SELECT `lsnr`, `renr`,`bemerkung` FROM `paketannahme` WHERE `id` = %d LIMIT 1',
|
||||||
|
$id
|
||||||
|
));
|
||||||
|
|
||||||
|
$lsnr = $fields[0]['lsnr'];
|
||||||
|
$renr = $fields[0]['renr'];
|
||||||
|
$bemerkung = $fields[0]['bemerkung'];
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
// Save header
|
||||||
|
$this->app->DB->Update(
|
||||||
|
"UPDATE paketannahme SET
|
||||||
|
lsnr='".$lsnr."',
|
||||||
|
renr='".$renr."',
|
||||||
|
bemerkung='".$bemerkung."'
|
||||||
|
WHERE id='$id' LIMIT 1");
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->app->Tpl->Set('LSNR', $lsnr);
|
||||||
|
$this->app->Tpl->Set('RENR', $renr);
|
||||||
|
$this->app->Tpl->Set('BEMERKUNG', $bemerkung);
|
||||||
|
|
||||||
$isCmdFromReturnOrder = $cmd === 'fromreturnorder';
|
$isCmdFromReturnOrder = $cmd === 'fromreturnorder';
|
||||||
if($isCmdFromReturnOrder) {
|
if($isCmdFromReturnOrder) {
|
||||||
/** @var Retoure $returnOrderObj */
|
/** @var Retoure $returnOrderObj */
|
||||||
$returnOrderObj = $this->app->loadModule('retoure');
|
$returnOrderObj = $this->app->loadModule('retoure');
|
||||||
if(!empty($returnOrderObj)) {
|
if(!empty($returnOrderObj)) {
|
||||||
$id = $this->app->Secure->GetGET('id');
|
|
||||||
$receiptDocument = $returnOrderObj->getReceiptDocumentArrByParcelId($id);
|
$receiptDocument = $returnOrderObj->getReceiptDocumentArrByParcelId($id);
|
||||||
if(!empty($receiptDocument['return_order_id'])) {
|
if(!empty($receiptDocument['return_order_id'])) {
|
||||||
$this->LocatateToReturnOrderPosition($receiptDocument['return_order_id']);
|
$this->LocatateToReturnOrderPosition($receiptDocument['return_order_id']);
|
||||||
@ -1596,14 +1750,11 @@ class Wareneingang
|
|||||||
$response->send();
|
$response->send();
|
||||||
$this->app->ExitXentral();
|
$this->app->ExitXentral();
|
||||||
}
|
}
|
||||||
$id = $this->app->Secure->GetGET('id');
|
|
||||||
$this->app->erp->RunHook('wareneingang_distriinhalt_start', 1, $id);
|
$this->app->erp->RunHook('wareneingang_distriinhalt_start', 1, $id);
|
||||||
|
|
||||||
$submit = $this->app->Secure->GetPOST('submit');
|
$submit = $this->app->Secure->GetPOST('submit');
|
||||||
$submitkunde = $this->app->Secure->GetPOST('submitkunde');
|
$submitkunde = $this->app->Secure->GetPOST('submitkunde');
|
||||||
|
|
||||||
$this->WareneingangPaketDistriMenu();
|
|
||||||
|
|
||||||
if($submit!='') {
|
if($submit!='') {
|
||||||
$tmp = $this->app->Secure->GetPOST('pos');
|
$tmp = $this->app->Secure->GetPOST('pos');
|
||||||
$tmpRetoure = $this->app->Secure->GetPOST('retourepos');
|
$tmpRetoure = $this->app->Secure->GetPOST('retourepos');
|
||||||
@ -1707,12 +1858,10 @@ class Wareneingang
|
|||||||
$this->app->Tpl->Set('TAB1ENDE','-->');*/
|
$this->app->Tpl->Set('TAB1ENDE','-->');*/
|
||||||
$this->app->Tpl->Set('TAB1START','');
|
$this->app->Tpl->Set('TAB1START','');
|
||||||
$this->app->Tpl->Set('TAB1ENDE','');
|
$this->app->Tpl->Set('TAB1ENDE','');
|
||||||
$this->app->Tpl->Set('BEFORETAB1', '<!--');
|
// $this->app->Tpl->Set('BEFORETAB1', '<!--');
|
||||||
$this->app->Tpl->Set('AFTERTAB1', '-->');
|
// $this->app->Tpl->Set('AFTERTAB1', '-->');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!$isSupplier && !$isCustomer) {
|
if(!$isSupplier && !$isCustomer) {
|
||||||
$this->app->Tpl->Set('TAB1START','');
|
$this->app->Tpl->Set('TAB1START','');
|
||||||
$this->app->Tpl->Set('TAB1ENDE','');
|
$this->app->Tpl->Set('TAB1ENDE','');
|
||||||
@ -1725,6 +1874,14 @@ class Wareneingang
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (!empty($addressRow['name'])) {
|
||||||
|
$this->app->Tpl->Set('LEGENDE',"Paket <b>Nr.$id</b> erfassen für Adresse '".$addressRow['name']."':");
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->app->Tpl->Add('TAB1_SECOND',"<br><h1>Paketinhalt (eingebucht):</h1><br>");
|
||||||
|
$this->app->YUI->TableSearch('TAB1_SECOND', 'paketdistribution_list', "show", "", "", basename(__FILE__), __CLASS__);
|
||||||
|
|
||||||
$this->app->erp->RunHook('wareneingang_distriinhalt', 1, $id);
|
$this->app->erp->RunHook('wareneingang_distriinhalt', 1, $id);
|
||||||
if($showcreateReturnOrder) {
|
if($showcreateReturnOrder) {
|
||||||
$this->app->Tpl->addButton(
|
$this->app->Tpl->addButton(
|
||||||
@ -1745,12 +1902,12 @@ class Wareneingang
|
|||||||
'zurück zur Übersicht'
|
'zurück zur Übersicht'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if($isSupplier){
|
// if($isSupplier){
|
||||||
$this->app->Tpl->Parse('PAGE', 'wareneingangpaketdistribution.tpl');
|
$this->app->Tpl->Parse('PAGE', 'wareneingang_paketinhalt.tpl');
|
||||||
}
|
// }
|
||||||
else {
|
// else {
|
||||||
$this->app->Tpl->Parse('PAGE', 'wareneingangpaketdistribution2.tpl');
|
// $this->app->Tpl->Parse('PAGE', 'wareneingangpaketdistribution2.tpl');
|
||||||
}
|
// }
|
||||||
$returnordergeprueft = $this->app->Secure->GetPOST('returnordergeprueft');
|
$returnordergeprueft = $this->app->Secure->GetPOST('returnordergeprueft');
|
||||||
$abschliessen = $this->app->Secure->GetPOST('abschliessen');
|
$abschliessen = $this->app->Secure->GetPOST('abschliessen');
|
||||||
if($abschliessen!='' || $returnordergeprueft != '') {
|
if($abschliessen!='' || $returnordergeprueft != '') {
|
||||||
@ -1762,18 +1919,27 @@ class Wareneingang
|
|||||||
$id
|
$id
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$this->app->DB->Update("UPDATE paketannahme SET status='abgeschlossen' WHERE id='$id' LIMIT 1");
|
|
||||||
|
|
||||||
|
// Save header and finish
|
||||||
|
$this->app->DB->Update(
|
||||||
|
"UPDATE paketannahme SET
|
||||||
|
status='abgeschlossen',
|
||||||
|
lsnr='".$lsnr."',
|
||||||
|
renr='".$renr."',
|
||||||
|
bemerkung='".$bemerkung."'
|
||||||
|
WHERE id='$id' LIMIT 1");
|
||||||
|
|
||||||
$this->app->erp->RunHook('wareneinang_paketannahme_abschliessen',1, $id);
|
$this->app->erp->RunHook('wareneinang_paketannahme_abschliessen',1, $id);
|
||||||
$this->app->Location->execute('index.php?module=wareneingang&action=paketannahme');
|
$this->app->Location->execute('index.php?module=wareneingang&action=list');
|
||||||
}
|
}
|
||||||
|
|
||||||
$manuellerfassen = $this->app->Secure->GetPOST('manuellerfassen');
|
$manuellerfassen = $this->app->Secure->GetPOST('manuellerfassen');
|
||||||
if($manuellerfassen!='') {
|
if($manuellerfassen!='') {
|
||||||
$this->app->Location->execute('index.php?module=wareneingang&action=manuellerfassen&id='.$id);
|
$this->app->Location->execute('index.php?module=wareneingang&action=manuellerfassen&id='.$id);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// END WareneingangPaketDistriInhalt
|
||||||
|
|
||||||
public function WareneingangMiniDetail()
|
public function WareneingangMiniDetail()
|
||||||
{
|
{
|
||||||
@ -2160,7 +2326,7 @@ class Wareneingang
|
|||||||
//$this->app->Tpl->Add(TAB1TEXT,"<li><a>Lagerartikel</a></li>");
|
//$this->app->Tpl->Add(TAB1TEXT,"<li><a>Lagerartikel</a></li>");
|
||||||
|
|
||||||
$this->app->YUI->AutoComplete('lager','lagerplatz',0,'&zwischenlager='.$withZwischenlager.'&withstandardlager='.$withStandardlager);
|
$this->app->YUI->AutoComplete('lager','lagerplatz',0,'&zwischenlager='.$withZwischenlager.'&withstandardlager='.$withStandardlager);
|
||||||
$this->app->Tpl->Parse('TAB1','wareneingangpaketdistribution_tab3_lager.tpl');
|
$this->app->Tpl->Parse('TAB1','wareneingang_lager.tpl');
|
||||||
}
|
}
|
||||||
else if($artikelcheckliste || $funktionstest || $endmontage) {
|
else if($artikelcheckliste || $funktionstest || $endmontage) {
|
||||||
}
|
}
|
||||||
@ -2168,8 +2334,8 @@ class Wareneingang
|
|||||||
{
|
{
|
||||||
$typ = 'mitarbeiter';
|
$typ = 'mitarbeiter';
|
||||||
$this->app->erp->RunHook('wareneingang_display_hook_rma1', 3, $id, $pos, $menge);
|
$this->app->erp->RunHook('wareneingang_display_hook_rma1', 3, $id, $pos, $menge);
|
||||||
$this->app->Tpl->Add('TAB1TEXT','<li><a>Artikel für Mitarbeiter</a></li>');
|
$this->app->Tpl->Add('TAB1TEXT','<li><a>Kein Lagerartikel</a></li>');
|
||||||
$this->app->Tpl->Parse('TAB1','wareneingangpaketdistribution_tab3_mitarbeiter.tpl');
|
$this->app->Tpl->Parse('TAB1','wareneingang_mitarbeiter.tpl');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo 'Diesen Fall gibt es nicht. Xentral Entwicklung kontaktieren!';
|
echo 'Diesen Fall gibt es nicht. Xentral Entwicklung kontaktieren!';
|
||||||
@ -2444,12 +2610,16 @@ class Wareneingang
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if($cmd === 'manuell') {
|
if($cmd === 'manuell') {
|
||||||
$this->app->erp->LagerEinlagern($artikel, $menge, $lager, '', 'Wareneingang manuell', '', $id);
|
$this->app->erp->LagerEinlagern($artikel, $menge, $lager, '', "Wareneingang Paket $id", '', $id);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$this->app->erp->LagerEinlagern($artikel, $menge, $lager, '', "Wareneingang von Bestellung $bestellung_belegnr", '', $id);
|
$this->app->erp->LagerEinlagern($artikel, $menge, $lager, '', "Wareneingang Paket $id, Bestellung $bestellung_belegnr", '', $id);
|
||||||
$this->app->erp->RunHook('wareneingang_bestellung', 5, $bparr, $artikel, $menge, $lager, $id);
|
$this->app->erp->RunHook('wareneingang_bestellung', 5, $bparr, $artikel, $menge, $lager, $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$lagerplatz_name = $this->app->DB->Select("SELECT kurzbezeichnung FROM lager_platz WHERE lager_platz.id = $lager LIMIT 1");
|
||||||
|
$bemerkung = $lagerplatz_name;
|
||||||
|
|
||||||
}
|
}
|
||||||
$typ2 = 'lager_platz';
|
$typ2 = 'lager_platz';
|
||||||
$tmpid2 = array('artikel'=>$artikel,'lager_platz'=>$lager,'menge'=>$menge);
|
$tmpid2 = array('artikel'=>$artikel,'lager_platz'=>$lager,'menge'=>$menge);
|
||||||
@ -2512,7 +2682,15 @@ class Wareneingang
|
|||||||
$geliefert += $menge;
|
$geliefert += $menge;
|
||||||
$this->app->DB->Update("UPDATE bestellung_position SET geliefert='$geliefert' WHERE id='$pos' LIMIT 1");
|
$this->app->DB->Update("UPDATE bestellung_position SET geliefert='$geliefert' WHERE id='$pos' LIMIT 1");
|
||||||
}
|
}
|
||||||
|
} else if ($cmd == 'manuell') {
|
||||||
|
// Save the manually added entries to paketdistribution
|
||||||
|
$this->app->DB->Insert("INSERT INTO paketdistribution
|
||||||
|
(id,bearbeiter,zeit,paketannahme,adresse,artikel,menge,vpe,etiketten,bemerkung)
|
||||||
|
VALUES ('','".$this->app->User->GetName()."',NOW(),'$id','$adresse','$artikel','$menge','$vpe','$etiketten','$bemerkung')");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// alles passt weiter im abschluss
|
// alles passt weiter im abschluss
|
||||||
if($weiterleitung) {
|
if($weiterleitung) {
|
||||||
$this->app->Location->execute($weiterleitung);
|
$this->app->Location->execute($weiterleitung);
|
||||||
@ -2821,23 +2999,11 @@ public function WareneingangPaketAbschliessen()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function WareneingangList()
|
public function WareneingangList()
|
||||||
{
|
{
|
||||||
$this->WareneingangMenu();
|
$this->WareneingangPaketMenu();
|
||||||
|
$this->app->YUI->TableSearch('TAB1', 'paketannahme_list', "show", "", "", basename(__FILE__), __CLASS__);
|
||||||
$this->app->Tpl->Set('SUBHEADING','Lieferungen');
|
$this->app->Tpl->Parse('PAGE', "wareneingang_list.tpl");
|
||||||
//Jeder der in Nachbesserung war egal ob auto oder manuell wandert anschliessend in Manuelle-Freigabe");
|
|
||||||
$table = new EasyTable($this->app);
|
|
||||||
$table->Query("SELECT '23.11.2009' as datum, 'Olimex' as lieferant,id FROM aufgabe LIMIT 3");
|
|
||||||
$table->DisplayNew('INHALT','<a href="index.php?module=ticket&action=assistent&id=%value%">Lesen</a>');
|
|
||||||
$this->app->Tpl->Parse('TAB1','rahmen.tpl');
|
|
||||||
$this->app->Tpl->Set('INHALT','');
|
|
||||||
|
|
||||||
$this->app->Tpl->Set('AKTIV_TAB1','tabs-1');
|
|
||||||
$this->app->Tpl->Parse('PAGE','wareneinganguebersicht.tpl');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3041,7 +3207,7 @@ public function WareneingangPaketannahme()
|
|||||||
|
|
||||||
$this->app->Tpl->Set('AKTIV_TAB1','tabs-1');
|
$this->app->Tpl->Set('AKTIV_TAB1','tabs-1');
|
||||||
$this->app->User->SetParameter('wareneingang_action', 'paketannahme');
|
$this->app->User->SetParameter('wareneingang_action', 'paketannahme');
|
||||||
$this->app->Tpl->Parse('PAGE','wareneingangpaketannahme.tpl');
|
$this->app->Tpl->Parse('PAGE','wareneingang_paketannahme.tpl');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user