13 $ct[
'view'][
'table'] =
'righe_note_pro_forma';
16 $ct[
'view'][
'open'][
'table'] =
'righe_documenti_amministrativi';
19 $ct[
'view'][
'id'] = md5(
24 $ct[
'view'][
'cols'] = array(
26 'data_fatturabile' =>
'data',
27 'cliente' =>
'cliente',
28 '__label__' =>
'descrizione',
29 'nota_pro_forma' =>
'nota pro forma',
30 'quantita' =>
'quantita',
32 'importo_netto_totale' =>
'importo' 36 $ct[
'view'][
'class'] = array(
37 'cliente' =>
'text-left',
38 'data_fatturabile' =>
'no-wrap',
39 '__label__' =>
'text-left',
40 'nota_pro_forma' =>
'text-left',
41 'fattura' =>
'text-left',
42 'importo_netto_totale' =>
'text-right no-wrap' 46 $ct[
'etc'][
'clienti'] =
mysqlQuery(
$cf[
'mysql'][
'connection'],
'SELECT id, __label__ FROM anagrafica_view WHERE se_cliente = 1');
49 $ct[
'etc'][
'anni'] =
mysqlSelectColumn(
'anno',
$cf[
'mysql'][
'connection'],
'SELECT DISTINCT(YEAR(data_lavorazione)) AS anno FROM righe_documenti_amministrativi WHERE id_tipologia = 2' );
52 $ct[
'etc'][
'include'][
'filters'] =
'inc/note_pro_forma.view.filters.html';
55 $ct[
'view'][
'open'][
'page'] =
'righe_note_pro_forma_gestione';
$cf['ricerca']['template']