auftrag added filter not sent

This commit is contained in:
OpenXE 2024-07-15 11:21:45 +02:00
parent 697f10cc68
commit 5964974458
2 changed files with 7 additions and 2 deletions

View File

@ -81,8 +81,9 @@ class Auftrag extends GenAuftrag
$this->app->Tpl->Add('JQUERYREADY', "$('#autoversandok').click( function() { fnFilterColumn15( 0 ); } );");
$this->app->Tpl->Add('JQUERYREADY', "$('#fastlanea').click( function() { fnFilterColumn16( 0 ); } );");
$this->app->Tpl->Add('JQUERYREADY', "$('#tolate').click( function() { fnFilterColumn17( 0 ); } );");
$this->app->Tpl->Add('JQUERYREADY', "$('#notsent').click( function() { fnFilterColumn18( 0 ); } );");
// $this->app->Tpl->Add('JQUERYREADY',"$('#artikellager').click( function() { oTable".$name.".fnDraw(); } );");
for ($r = 1;$r < 18;$r++) {
for ($r = 1;$r < 19;$r++) {
$this->app->Tpl->Add('JAVASCRIPT', '
function fnFilterColumn' . $r . ' ( i )
{
@ -431,7 +432,10 @@ class Auftrag extends GenAuftrag
)";
}
$notsent = $this->app->Secure->GetGET("more_data18");
if ($notsent == 1) {
$subwhere[] = "(a.versendet <> 1)";
}
$tmp = '';
if(!empty($subwhere)) {

View File

@ -35,6 +35,7 @@ document.onkeydown = function(evt) {
<li class="filter-item"><input type="checkbox" id="autoversandok"><label for="autoversandok">{|Auto-Versand OK|}</label></li>
<li class="filter-item"><input type="checkbox" id="fastlanea"><label for="fastlanea">{|Fast-Lane|}</label></li>
<li class="filter-item"><input type="checkbox" id="tolate"><label for="tolate">{|Lieferdatum &uuml;berf&auml;llig|}</label></li>
<li class="filter-item"><input type="checkbox" id="notsent"><label for="notsent">{|Nicht versendet|}</label></li>
[HOOK_FILTER_1]
</ul>
</div>