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/host_server/server_services.xml

41 lines
1.4 KiB
XML
Raw Normal View History

<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>