<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: jack  
    $Date: 2014-10-11 下午5:29:57  
    $Revision: 1.0  
    $Purpose:  
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                BEGIN
                    hls_prj_project_pkg.calc_quotation( p_project_lease_item_id =>${@project_lease_item_id}, 
                                                          p_price_list     =>${@price_list},
                                                          p_product_plan_id =>${@product_plan_id},
					                                      p_int_rate_display        =>${@int_rate_display},
					                                      p_down_payment_ratio  =>${@down_payment_ratio},
					                                      p_balloon_ratio =>${@balloon_ratio},
					                                      p_deposit_ratio        =>${@deposit_ratio},
					                                      p_lease_times  =>${@lease_times},
					                                      p_lease_charge_ratio =>${@lease_charge_ratio},
                                                          p_user_id =>${/session/@user_id},
                                                          p_INTERIM_RENTAL=>${@interim_rental},
                                                          p_discount	=>${@discount},
                                                          p_discount_limit_total =>${@discount_limit_total}) ;
                end;
            ]]></bm:update-sql>
            <bm:parameters>
                <bm:parameter name="interim_rental" dataType="java.lang.Double" input="false" output="true" outputPath="@interim_rental"/>
                <bm:parameter name="discount" dataType="java.lang.Double" input="false" output="true" outputPath="@discount"/>
                <bm:parameter name="discount_limit_total" dataType="java.lang.Double" input="false" output="true" outputPath="@discount_limit_total"/>
            </bm:parameters>
        </bm:operation>
    </bm:operations>
</bm:model>
