Added INITIAL FILTER to LA erteilen

Initial filter is: no dummies, neu or geändert.
Now these rows are presented to the user when loading the page.
This commit is contained in:
hainberg
2019-10-24 14:04:57 +02:00
parent 7cf02c3566
commit e68337c685
2 changed files with 11 additions and 0 deletions
@@ -179,6 +179,16 @@ $this->load->view(
// Custom filters
// -----------------------------------------------------------------------------------------------------------------
// Filters bestellte initially
function func_initialFilter(){
return [
{field: 'personalnummer', type: '>=', value: 0}, // NOT dummy lector
{field: 'bestellt', type: '!=', value: null}, // AND bestellt
{field: 'erteilt', type: '=', value: null}, // AND NOT erteilt
{field: 'akzeptiert', type: '=', value: null} // AND NOT akzeptiert
]
}
// Filters geaenderte
function filter_showChanged(data){
@@ -344,6 +344,7 @@ $filterWidgetArray = array(
selectableCheck: function(row){
return func_selectableCheck(row);
},
initialFilter: func_initialFilter(),
footerElement: func_footerElement(),
rowUpdated:function(row){
func_rowUpdated(row);