From 5b6062f9be1e84dba40b6832cf55d90078689ea3 Mon Sep 17 00:00:00 2001 From: Xenomporio <> Date: Tue, 19 Jul 2022 10:16:06 +0200 Subject: [PATCH] Show number of order auftrag drafts in bearbeitung --- www/pages/auftrag.php | 16 +++++++++++++++- www/pages/content/auftraguebersicht.tpl | 6 +----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/www/pages/auftrag.php b/www/pages/auftrag.php index c22a1b29..61a0bc81 100644 --- a/www/pages/auftrag.php +++ b/www/pages/auftrag.php @@ -6952,8 +6952,22 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '. $this->app->YUI->TableSearch('TAB1','auftraege', 'show','','',basename(__FILE__), __CLASS__); // $this->app->YUI->TableSearch('TAB2',"auftraegeoffeneauto"); $this->app->YUI->TableSearch('TAB3',"auftraegeoffene"); - $this->app->Tpl->Set('SELDRUCKER', $this->app->erp->GetSelectDrucker($this->app->User->GetParameter('rechnung_list_drucker'))); + + + $inbearbeitung = $this->app->DB->Select("SELECT count(a.id) FROM auftrag a WHERE a.id!='' AND a.status='angelegt'"); + + if($inbearbeitung > 0) { + $inbearbeitung =' ('.$inbearbeitung.')'; + } + else { + $inbearbeitung=''; + } + +// $this->app->Tpl->Set('MESSAGE','
Cronjob order processing not yet implemented!
'); + + $this->app->Tpl->Set('TABTEXT5',$inbearbeitung); + $this->app->YUI->TableSearch('TAB5',"auftraegeinbearbeitung"); $this->app->erp->RunHook('auftraguebersicht_filter', 0); $this->app->Tpl->Parse('PAGE',"auftraguebersicht.tpl"); diff --git a/www/pages/content/auftraguebersicht.tpl b/www/pages/content/auftraguebersicht.tpl index 3da55c2b..3f36bc7c 100644 --- a/www/pages/content/auftraguebersicht.tpl +++ b/www/pages/content/auftraguebersicht.tpl @@ -12,7 +12,7 @@ document.onkeydown = function(evt) {
@@ -113,10 +113,6 @@ document.onkeydown = function(evt) {
[TAB5]
- - - -