fetchArray('SELECT * FROM zz_segments WHERE id='.prepare($id_segment)); $add_where = 'AND '.$rs_segment[0]['clause']; $body .= '
Documento | \n"; $body .= "Anagrafica | \n"; $body .= "Tipo di pagamento | \n"; $body .= "Data scadenza | \n"; $body .= "Importo | \n"; $body .= "GiĆ pagato | \n"; $body .= "
---|---|---|---|---|---|
'.$rs[$i]['Documento'].' '.$rs[$i]['Data emissione']." | \n";
$body .= ' '.$rs[$i]['Anagrafica']." | \n"; $body .= ''.$rs[$i]['Tipo di pagamento']." | \n"; $body .= "".$rs[$i]['Data scadenza']." | \n"; $body .= "".moneyFormat($rs[$i]['Importo'], 2)." | \n"; $body .= "".moneyFormat($rs[$i]['Pagato'], 2)." | \n"; $body .= "
TOTALE: | ".moneyFormat($totale_da_pagare, 2)." | ".moneyFormat($totale_pagato, 2)." | \n"; $body .= "