226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
|
$column->originalType = 'tel';
}
$columns[$champ] = $column;
}
}
elseif ($target === 'compta') {
$columns['t.id_year'] = (object) [
'textMatch'=> false,
'label' => 'Exercice',
'type' => 'enum',
'null' => false,
'values' => $db->getAssoc('SELECT id, label FROM acc_years ORDER BY end_date;'),
'alias' => 'id_year',
];
$columns['t.id'] = (object) [
'textMatch'=> false,
'label' => 'Numéro écriture',
'type' => 'integer',
'null' => false,
'alias' => 'id',
];
|
<
<
<
<
<
<
<
<
<
|
226
227
228
229
230
231
232
233
234
235
236
237
238
239
|
$column->originalType = 'tel';
}
$columns[$champ] = $column;
}
}
elseif ($target === 'compta') {
$columns['t.id'] = (object) [
'textMatch'=> false,
'label' => 'Numéro écriture',
'type' => 'integer',
'null' => false,
'alias' => 'id',
];
|
317
318
319
320
321
322
323
324
325
326
327
328
329
330
|
'textMatch'=> false,
'label' => 'Type d\'écriture',
'type' => 'enum',
'null' => false,
'values' => Transaction::TYPES_NAMES,
'alias' => 'type',
];
}
return $columns;
}
/**
* Construire une recherche SQL à partir d'un objet généré par QueryBuilder
|
>
>
>
>
>
>
>
>
>
|
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
|
'textMatch'=> false,
'label' => 'Type d\'écriture',
'type' => 'enum',
'null' => false,
'values' => Transaction::TYPES_NAMES,
'alias' => 'type',
];
$columns['t.id_year'] = (object) [
'textMatch'=> false,
'label' => 'Exercice',
'type' => 'enum',
'null' => false,
'values' => $db->getAssoc('SELECT id, label FROM acc_years ORDER BY end_date;'),
'alias' => 'id_year',
];
}
return $columns;
}
/**
* Construire une recherche SQL à partir d'un objet généré par QueryBuilder
|