Tax Report by Year and MonthYearly TotalsSELECT from_unixtime(A.date_orig,"%Y") as yearmonth, count(A.id) as sales, sum(A.amount) as amount from %%AGILE_DB_PREFIX%%invoice_item_tax A A.site_id = %%DEFAULT_SITE%%GROUP BY yearmonth ORDER BY yearmonth DESC0Year:yearmonthtruetrueTaxable ItemssalestrueTax Chargedamounttruedol,2Monthly TotalsSELECT from_unixtime(A.date_orig,"%M, %Y") as yearmonth, count(A.id) as sales, sum(A.amount) as amount from %%AGILE_DB_PREFIX%%invoice_item_tax A A.site_id = %%DEFAULT_SITE%%GROUP BY yearmonth ORDER BY yearmonth DESC0Month and Year:yearmonthtruetrueTaxable ItemssalestrueTax Chargedamounttruedol,2headingSELECT from_unixtime(A.date_orig,"%Y") as yearmonth from %%AGILE_DB_PREFIX%%invoice_item_tax AA.site_id = %%DEFAULT_SITE%%GROUP BY yearmonth ORDER BY yearmonth DESC0Breakdown for Year:yearmonthtruetruetruefalsefalseSELECT B.description as tax, from_unixtime(A.date_orig,"%Y") as yearmonth, count(A.id) as sales, sum(A.amount) as amount from %%AGILE_DB_PREFIX%%invoice_item_tax A inner join %%AGILE_DB_PREFIX%%tax B on A.tax_id = B.id
A.site_id = %%DEFAULT_SITE%%GROUP BY tax ORDER BY tax DESC30TaxtaxtruetrueTaxable ItemssalestrueTax Chargedamounttruedol,2headingSELECT from_unixtime(A.date_orig,"%M, %Y") as yearmonth from %%AGILE_DB_PREFIX%%invoice_item_tax AA.site_id = %%DEFAULT_SITE%%GROUP BY yearmonth ORDER BY yearmonth DESC0Breakdown for Month:yearmonthtruetruetruefalsefalseSELECT B.description as tax, from_unixtime(A.date_orig,"%M, %Y") as yearmonth, count(A.id) as sales, sum(A.amount) as amount from %%AGILE_DB_PREFIX%%invoice_item_tax A inner join %%AGILE_DB_PREFIX%%tax B on A.tax_id = B.id
A.site_id = %%DEFAULT_SITE%%GROUP BY tax ORDER BY tax DESC30TaxtaxtruetrueTaxable ItemssalestrueTax Chargedamounttruedol,2