query_designer:
    aggregates:
        opportunity_status:
            applicable: [{entity: OroCRMSalesBundle:Opportunity, field: status_label }]
            functions:
                - { name: WonCount,        return_type: integer, expr: @OroCRM\Bundle\SalesBundle\QueryDesigner\WonOpportunityStatusCountFunction }
                - { name: LostCount,       return_type: integer, expr: @OroCRM\Bundle\SalesBundle\QueryDesigner\LostOpportunityStatusCountFunction }
                - { name: InProgressCount, return_type: integer, expr: @OroCRM\Bundle\SalesBundle\QueryDesigner\InProgressOpportunityStatusCountFunction }
            query_type: [report]
        opportunity:
            applicable: [{entity: OroCRMSalesBundle:Opportunity, field: closeRevenue}]
            functions:
                - { name: WonRevenueSumFunction, return_type: money, expr: @OroCRM\Bundle\SalesBundle\QueryDesigner\WonRevenueSumFunction }
            query_type: [report]
