fetchArray($query); $totrows = sizeof($rs); if ($dir == 'entrata') { $body .= '
Mese | \n"; $body .= "Imponibile | \n"; $body .= "Iva | \n"; $body .= "Totale |
---|---|---|---|
".$mesi[intval(date('m', strtotime($rs[$r]['data'])))].' '.date('Y', strtotime($rs[$r]['data']))." | \n"; $body .= "".moneyFormat($rs2[0]['imponibile'])." | \n"; $body .= "".moneyFormat($rs2[0]['iva'])." | \n"; $body .= "".moneyFormat($rs2[0]['imponibile'] + $rs2[0]['iva'] + $rs2[0]['rivalsainps'] + $rs2[0]['bollo'] + $rs2[0]['ritenutaacconto'])." |
TOTALE: | \n"; $body .= "".moneyFormat($totale_imponibile)." | \n"; $body .= "".moneyFormat($totale_iva)." | \n"; $body .= "".moneyFormat($totale)." | \n"; $body .= "