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