<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: Harry  
    $Date: 2017-2-21 上午11:30:49  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                select sum(ct.transaction_amount) sum_transaction_amount from csh_transaction ct 
                where ct.company_id = 1
                and ct.posted_flag = 'Y'
                and (ct.transaction_type in ('RECEIPT','ADVANCE_RECEIPT','PAYMENT') or (ct.transaction_type = 'DEPOSIT' and ct.returned_flag = 'RETURN'))
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
