Variables can be used as follows:
<?php echo $variableName; ?>
Please use all existing templates as guides when creating custom templates.
- Location:
templates/invoice/invoice.php
- Location:
templates/report/default_template.php- Note that you can create custom report templates.
'logo' => logo(),
'css' => file_get_contents('assets/alternative_view.css'),
'queryString' => $queryString,
'year' => $year,
'displayType' => $displayType,
'estimatedTaxes' => $estimatedTaxes,
'regionTotals' => $regionTotals,
'attentionMessage' => $attentionMessage,
'dayNumber' => $dayInTheYear,
'estimateMode' => $doProjectedEstimate,
'averages' => [
'monthly' => [
'postTaxIncome' => formatMoney($postTaxMonthlyAverage * 100),
'tax' => formatMoney($averageMonthlyTax * 100),
'preTax' => formatMoney($preTaxMonthlyAverage * 100),
],
'daily' => [
'postTaxIncome' => formatMoney($postTaxDailyAverage * 100),
'tax' => formatMoney($averageDailyTax * 100),
'preTax' => formatMoney($preTaxDailyAverage * 100),
],
'actual' => [
'daily' => [
'preTax' => formatMoney($currentDailyAverage * 100), // baseIncome / dayNumberInTheYear
],
'monthly' => [
'preTax' => formatMoney($currentMonthlyAverage * 100), // baseIncome / (dayNumberInTheYear / (365/30))
]
],
],
'income' => [
'postTaxMoney' => formatMoney($postTaxMoney * 100),
'baseIncome' => formatMoney($baseIncome * 100),
'additionalEstimate' => formatMoney($additionalEstimate * 100),
'additionalTaxBurdens' => formatMoney($taxBurdens['adjustment'] * 100),
'deductions' => formatMoney($deductions['adjustment'] * 100),
'taxableIncome' => formatMoney($taxableIncome * 100),
'totalDailyAverage' => formatMoney($totalDailyAverage * 100),
],
'taxes' => [
'totalTax' => formatMoney($tax * 100),
'effectiveRate' => $taxableIncome > 0 ? round($tax / $taxableIncome, 2) * 100 : 0,
'regions' => $finalData,
],
'_raw' => [
'taxBurdens' => $taxBurdens['data'],
'deductions' => $deductions['data'],
],
- Maps to table in SQLite3
- Maps to table in SQLite3
- Maps to table in SQLite3