mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-24 13:40:29 +01:00
wareneingang reopen
This commit is contained in:
parent
4acb921b51
commit
4a5a723a15
@ -172,6 +172,11 @@
|
||||
<button name="submit" class="ui-button-icon" style="width:100%;" value="abschliessen">{|Abschließen|}</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr [ABGESCHLOSSENHIDDEN]>
|
||||
<td>
|
||||
<button name="submit" class="ui-button-icon" style="width:100%;" value="oeffnen" form="oeffnen">{|Öffnen|}</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
@ -218,6 +223,9 @@
|
||||
</div> [AFTERTAB2]
|
||||
</form>
|
||||
</div>
|
||||
<form action="index.php?module=wareneingang&action=oeffnen" id="oeffnen" method="POST">
|
||||
<input name="id" value="[ID]" hidden></input>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$("#tabs").tabs("option", "active", [TABINDEX]);
|
||||
|
@ -1474,6 +1474,7 @@ class Wareneingang {
|
||||
$this->app->ActionHandler("settings", "WareneingangSettings");
|
||||
|
||||
$this->app->ActionHandler("deletepos", "WareneingangPositionLoeschen");
|
||||
$this->app->ActionHandler("oeffnen", "WareneingangOeffnen");
|
||||
|
||||
$this->app->DefaultActionHandler("list");
|
||||
$this->app->erp->Headlines('Wareneingang');
|
||||
@ -1598,6 +1599,15 @@ class Wareneingang {
|
||||
$this->app->Location->execute('Location: index.php?module=wareneingang&action=distribution');
|
||||
}
|
||||
|
||||
public function WareneingangOeffnen() {
|
||||
$id = $this->app->Secure->GetPOST('id');
|
||||
|
||||
if ($id > 0 && is_numeric($id)) {
|
||||
$this->app->DB->Delete("UPDATE paketannahme set status = 'angelegt' WHERE id='$id' LIMIT 1");
|
||||
}
|
||||
$this->app->Location->execute('Location: index.php?module=wareneingang&action=distriinhalt&id='.$id);
|
||||
}
|
||||
|
||||
public function WareneingangMenu() {
|
||||
$action = $this->app->Secure->GetGET('action');
|
||||
$this->app->Tpl->Add('KURZUEBERSCHRIFT', ' Wareneingang');
|
||||
|
Loading…
Reference in New Issue
Block a user