This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/reports/account_billing/expire_dates.xml

19 lines
582 B
XML
Raw Normal View History

<report>
<title>Card Expiration Dates</title>
<level>
<title>Summary by Month and Year</title>
<sql>SELECT count(id) as total, CONCAT( "20", card_exp_year, "-", card_exp_month) as expire from %%AGILE_DB_PREFIX%%account_billing A</sql>
<criteria>A.site_id = %%DEFAULT_SITE%%</criteria>
<orderby>GROUP BY expire ORDER BY expire ASC</orderby>
<indent>0</indent>
<column>
<display>Expire Year-Month</display>
<field>expire</field>
</column>
<column>
<display>Total</display>
<field>total</field>
<total>true</total>
</column>
</level>
</report>