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 .= "".number_format( $rs2[0]['imponibile'], 2, ",", "." )." € | \n"; $body .= "".number_format( $rs2[0]['iva'], 2, ",", "." )." € | \n"; $body .= "".number_format( $rs2[0]['imponibile'] + $rs2[0]['iva'] + $rs2[0]['rivalsainps'] + $rs2[0]['bollo'] + $rs2[0]['ritenutaacconto'], 2, ",", "." )." € |
TOTALE: | \n"; $body .= "".number_format( $totale_imponibile, 2, ",", "." )." € | \n"; $body .= "".number_format( $totale_iva, 2, ",", "." )." € | \n"; $body .= "".number_format( $totale, 2, ",", "." )." € | \n"; $body .= "