<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
                begin
                    ${@return_value} := CUS_CON_CONTRACT_PKG.AUTO_CONTRACT_INCEPT
                    (
                        p_company_id=>${/session/@company_id},
                        p_calc_date=>trunc(last_day(to_date(${@calc_date},'YYYY-MM'))),
                        p_user_id=>${/session/@user_id}
                    );
                end;]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
