";
echo "| " . $row['tax_name'] . " | ";
if ($view == 'monthly') {
for ($i = 1; $i <= 12; $i++) {
$monthly_tax = getMonthlyTax($tax_name, $i, $year, $mysqli);
echo "" . numfmt_format_currency($currency_format, $monthly_tax, $company_currency) . " | ";
}
} else {
for ($q = 1; $q <= 4; $q++) {
$quarterly_tax = getQuarterlyTax($tax_name, $q, $year, $mysqli);
echo "" . numfmt_format_currency($currency_format, $quarterly_tax, $company_currency) . " | ";
}
}
// Calculate total for row and echo bold
$total_tax = getTotalTax($tax_name, $year, $mysqli);
echo "" . numfmt_format_currency($currency_format, $total_tax, $company_currency) . " | ";
echo "";
}
?>
| Total |
" . numfmt_format_currency($currency_format, $monthly_tax, $company_currency) . "";
}
} else {
for ($q = 1; $q <= 4; $q++) {
$quarterly_tax = getQuarterlyTax($tax_name, $q, $year, $mysqli);
echo "" . numfmt_format_currency($currency_format, $quarterly_tax, $company_currency) . " | ";
}
}
?>
|