Initial Commit of AgileBill Open Source
This commit is contained in:
41
reports/host_server/server_services.xml
Normal file
41
reports/host_server/server_services.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<report>
|
||||
<title>Server Statistics</title>
|
||||
<level>
|
||||
<htmlstyle>heading</htmlstyle>
|
||||
<sql>SELECT B.name, count(A.id) as total, sum(A.price) as total_amt from %%AGILE_DB_PREFIX%%service A inner join %%AGILE_DB_PREFIX%%host_server B on B.id=A.host_server_id</sql>
|
||||
<criteria>A.site_id = %%DEFAULT_SITE%% and A.active=1 and A.type LIKE '%host%' </criteria>
|
||||
<orderby>GROUP BY name ORDER BY total_amt DESC</orderby>
|
||||
<indent>0</indent>
|
||||
<column>
|
||||
<display>Server</display>
|
||||
<field>name</field>
|
||||
<aggregate>true</aggregate>
|
||||
<width></width>
|
||||
<format></format>
|
||||
<group_children_by>true</group_children_by>
|
||||
<visible>true</visible>
|
||||
<hide_dups>false</hide_dups>
|
||||
<sql></sql>
|
||||
<sql_criteria></sql_criteria>
|
||||
<condition></condition>
|
||||
<total>false</total>
|
||||
</column>
|
||||
<level>
|
||||
<sql>SELECT B.name, A.sku, count(A.id) as total, sum(A.price) as total_amt from %%AGILE_DB_PREFIX%%service A inner join %%AGILE_DB_PREFIX%%host_server B on B.id=A.host_server_id</sql>
|
||||
<criteria>A.site_id = %%DEFAULT_SITE%% and A.active=1 AND A.type LIKE '%host%'</criteria>
|
||||
<orderby>GROUP BY sku ORDER BY sku DESC</orderby>
|
||||
<indent>30</indent>
|
||||
<column>
|
||||
<display>SKU</display>
|
||||
<field>sku</field>
|
||||
<visible>true</visible>
|
||||
</column>
|
||||
<column>
|
||||
<display>Total Services</display>
|
||||
<field>total</field>
|
||||
<total>true</total>
|
||||
<format>num</format>
|
||||
</column>
|
||||
</level>
|
||||
</level>
|
||||
</report>
|
121
reports/host_server/tld_services.xml
Normal file
121
reports/host_server/tld_services.xml
Normal file
@@ -0,0 +1,121 @@
|
||||
<report>
|
||||
<title>TLD Statistics</title>
|
||||
<level>
|
||||
<sql>SELECT A.domain_tld, count(A.id) as total, sum(B.total_amt) as total_amt from %%AGILE_DB_PREFIX%%service A join %%AGILE_DB_PREFIX%%invoice_item B on A.invoice_item_id=B.id</sql>
|
||||
<criteria>A.site_id = %%DEFAULT_SITE%% and A.active=1 and A.type LIKE '%domain%' </criteria>
|
||||
<orderby>GROUP BY domain_tld ORDER BY total_amt DESC</orderby>
|
||||
<indent>0</indent>
|
||||
<column>
|
||||
<display>TLD</display>
|
||||
<field>domain_tld</field>
|
||||
<visible>true</visible>
|
||||
</column>
|
||||
<column>
|
||||
<display>Total Registrations</display>
|
||||
<field>total</field>
|
||||
<total>true</total>
|
||||
</column>
|
||||
<column>
|
||||
<display>Total Sales</display>
|
||||
<field>total_amt</field>
|
||||
<total>true</total>
|
||||
<total_format>dol,2</total_format>
|
||||
</column>
|
||||
</level>
|
||||
|
||||
<break />
|
||||
|
||||
<level>
|
||||
<htmlstyle>heading</htmlstyle>
|
||||
<sql>SELECT DISTINCT from_unixtime(A.date_orig,"%Y") as yearmonth, A.domain_tld, count(A.id) as total, sum(B.total_amt) as total_amt from %%AGILE_DB_PREFIX%%service A join %%AGILE_DB_PREFIX%%invoice_item B on A.invoice_item_id=B.id</sql>
|
||||
<criteria>A.site_id = %%DEFAULT_SITE%% and A.active=1 and A.type LIKE '%domain%' </criteria>
|
||||
<orderby>GROUP BY yearmonth ORDER BY yearmonth</orderby>
|
||||
<indent>0</indent>
|
||||
<column>
|
||||
<display>Year:</display>
|
||||
<field>yearmonth</field>
|
||||
<aggregate>true</aggregate>
|
||||
<width></width>
|
||||
<format></format>
|
||||
<group_children_by>true</group_children_by>
|
||||
<visible>true</visible>
|
||||
<hide_dups>false</hide_dups>
|
||||
<sql></sql>
|
||||
<sql_criteria></sql_criteria>
|
||||
<condition></condition>
|
||||
<total>false</total>
|
||||
<total_format></total_format>
|
||||
<link></link>
|
||||
</column>
|
||||
<level>
|
||||
<sql>SELECT from_unixtime(A.date_orig,"%Y") as yearmonth, A.domain_tld, count(A.id) as total, sum(B.total_amt) as total_amt from %%AGILE_DB_PREFIX%%service A join %%AGILE_DB_PREFIX%%invoice_item B on A.invoice_item_id=B.id</sql>
|
||||
<criteria>A.site_id = %%DEFAULT_SITE%% and A.active=1 and A.type LIKE '%domain%' </criteria>
|
||||
<orderby>GROUP BY domain_tld ORDER BY total_amt DESC</orderby>
|
||||
<indent>30</indent>
|
||||
<column>
|
||||
<display>TLD</display>
|
||||
<field>domain_tld</field>
|
||||
<visible>true</visible>
|
||||
</column>
|
||||
<column>
|
||||
<display>Total Registrations</display>
|
||||
<field>total</field>
|
||||
<total>true</total>
|
||||
</column>
|
||||
<column>
|
||||
<display>Total Sales</display>
|
||||
<field>total_amt</field>
|
||||
<total>true</total>
|
||||
<total_format>dol,2</total_format>
|
||||
</column>
|
||||
</level>
|
||||
</level>
|
||||
|
||||
<break />
|
||||
|
||||
<level>
|
||||
<htmlstyle>heading</htmlstyle>
|
||||
<sql>SELECT DISTINCT from_unixtime(A.date_orig,"%M, %Y") as yearmonth, A.domain_tld, count(A.id) as total, sum(B.total_amt) as total_amt from %%AGILE_DB_PREFIX%%service A join %%AGILE_DB_PREFIX%%invoice_item B on A.invoice_item_id=B.id</sql>
|
||||
<criteria>A.site_id = %%DEFAULT_SITE%% and A.active=1 and A.type LIKE '%domain%' </criteria>
|
||||
<orderby>GROUP BY yearmonth ORDER BY yearmonth</orderby>
|
||||
<indent>0</indent>
|
||||
<column>
|
||||
<display>Month, Year:</display>
|
||||
<field>yearmonth</field>
|
||||
<aggregate>true</aggregate>
|
||||
<width></width>
|
||||
<format></format>
|
||||
<group_children_by>true</group_children_by>
|
||||
<visible>true</visible>
|
||||
<hide_dups>false</hide_dups>
|
||||
<sql></sql>
|
||||
<sql_criteria></sql_criteria>
|
||||
<condition></condition>
|
||||
<total>false</total>
|
||||
<total_format></total_format>
|
||||
<link></link>
|
||||
</column>
|
||||
<level>
|
||||
<sql>SELECT from_unixtime(A.date_orig,"%M, %Y") as yearmonth, A.domain_tld, count(A.id) as total, sum(B.total_amt) as total_amt from %%AGILE_DB_PREFIX%%service A join %%AGILE_DB_PREFIX%%invoice_item B on A.invoice_item_id=B.id</sql>
|
||||
<criteria>A.site_id = %%DEFAULT_SITE%% and A.active=1 and A.type LIKE '%domain%' </criteria>
|
||||
<orderby>GROUP BY domain_tld ORDER BY total_amt DESC</orderby>
|
||||
<indent>30</indent>
|
||||
<column>
|
||||
<display>TLD</display>
|
||||
<field>domain_tld</field>
|
||||
<visible>true</visible>
|
||||
</column>
|
||||
<column>
|
||||
<display>Total Registrations</display>
|
||||
<field>total</field>
|
||||
<total>true</total>
|
||||
</column>
|
||||
<column>
|
||||
<display>Total Sales</display>
|
||||
<field>total_amt</field>
|
||||
<total>true</total>
|
||||
<total_format>dol,2</total_format>
|
||||
</column>
|
||||
</level>
|
||||
</level>
|
||||
</report>
|
Reference in New Issue
Block a user