<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    t.attribute_1,
                    t.attribute_2,
                    t.attribute_3,
                    t.attribute_4,
                    t.attribute_5,
                    t.attribute_6,
                    t.attribute_7,
                    t.attribute_8,
                    t.attribute_9,
                    t.attribute_10,
                    t.attribute_11,
                    t.attribute_12,
                    t.attribute_13,
                    t.attribute_14,
                    t.attribute_15
                FROM
                    fnd_interface_lines t
                WHERE
                    t.header_id   = ${@header_id} AND
                    t.line_number > 0
            ]]></bm:query-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
            BEGIN
                hls_ebank_ccb_new_pkg.save_import_data(p_header_id => ${@header_id},
                                                       p_batch_id => ${@batch_id},
                                                       p_company_id => ${/session/@company_id},
                                                       p_user_id => ${/session/@user_id},
                                                       p_transaction_date => to_date(${@transaction_date}, 'yyyy-mm-dd'));
            END;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
