Commit 4417c30b authored by 高泉铭's avatar 高泉铭

[refactor] 部分功能校验改造

parent 970285cd
...@@ -5,90 +5,183 @@ ...@@ -5,90 +5,183 @@
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="CSH_TRANSACTION"> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1"
baseTable="CSH_TRANSACTION">
<bm:operations> <bm:operations>
<bm:operation name="update"> <bm:operation name="update">
<bm:update-sql><![CDATA[ <bm:update-sql><![CDATA[
update CSH_TRANSACTION update CSH_TRANSACTION
set ref_v05 = ${@ref_v05}, set ref_v05 = ${@ref_v05},
LAST_UPDATE_DATE = sysdate, LAST_UPDATE_DATE = sysdate,
last_updated_by = ${/session/@user_id} last_updated_by = ${/session/@user_id}
where transaction_id = ${@transaction_id} where transaction_id = ${@transaction_id}
]]></bm:update-sql> ]]>
</bm:update-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
<bm:fields> <bm:fields>
<bm:field name="transaction_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TRANSACTION_ID" prompt="CSH511.CSH_TRANSACTION.TRANSACTION_ID"/> <bm:field name="transaction_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TRANSACTION_ID"
<bm:field name="transaction_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TRANSACTION_NUM" prompt="CSH511.CSH_TRANSACTION.TRANSACTION_NUM"/> prompt="CSH511.CSH_TRANSACTION.TRANSACTION_ID"/>
<bm:field name="transaction_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TRANSACTION_CATEGORY" prompt="CSH511.CSH_TRANSACTION.TRANSACTION_CATEGORY"/> <bm:field name="transaction_num" databaseType="VARCHAR2" datatype="java.lang.String"
<bm:field name="transaction_type" databaseType="VARCHAR2" datatype="java.lang.String" lookupCode="CSH511_TRANSACTION_TYPE" lookupField="transaction_type_desc" physicalName="TRANSACTION_TYPE" prompt="CSH511.CSH_TRANSACTION.TRANSACTION_TYPE"/> physicalName="TRANSACTION_NUM" prompt="CSH511.CSH_TRANSACTION.TRANSACTION_NUM"/>
<bm:field name="receivables_type" databaseType="VARCHAR2" datatype="java.lang.String" lookupCode="RECEIVABLES_TYPE" lookupField="receivables_type_desc" physicalName="RECEIVABLES_TYPE" prompt="收款类型"/> <bm:field name="transaction_category" databaseType="VARCHAR2" datatype="java.lang.String"
<bm:field name="transaction_date" databaseType="DATE" datatype="java.util.Date" physicalName="TRANSACTION_DATE" prompt="CSH511.CSH_TRANSACTION.TRANSACTION_DATE"/> physicalName="TRANSACTION_CATEGORY" prompt="CSH511.CSH_TRANSACTION.TRANSACTION_CATEGORY"/>
<bm:field name="penalty_calc_date" databaseType="DATE" datatype="java.util.Date" physicalName="PENALTY_CALC_DATE" prompt="CSH511.CSH_TRANSACTION.PENALTY_CALC_DATE"/> <bm:field name="transaction_type" databaseType="VARCHAR2" datatype="java.lang.String"
<bm:field name="bank_slip_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_SLIP_NUM" prompt="CSH511.CSH_TRANSACTION.BANK_SLIP_NUM"/> lookupCode="CSH511_TRANSACTION_TYPE" lookupField="transaction_type_desc"
<bm:field name="company_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMPANY_ID" prompt="CSH511.CSH_TRANSACTION.COMPANY_ID"/> physicalName="TRANSACTION_TYPE" prompt="CSH511.CSH_TRANSACTION.TRANSACTION_TYPE"/>
<bm:field name="internal_period_num" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INTERNAL_PERIOD_NUM" prompt="CSH511.CSH_TRANSACTION.INTERNAL_PERIOD_NUM"/> <bm:field name="receivables_type" databaseType="VARCHAR2" datatype="java.lang.String"
<bm:field name="period_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PERIOD_NAME" prompt="HLS.ACCOUNT_PERIOD_NAME"/> lookupCode="RECEIVABLES_TYPE" lookupField="receivables_type_desc" physicalName="RECEIVABLES_TYPE"
<bm:field name="payment_method_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PAYMENT_METHOD_ID" prompt="HLS.PAYMENT_METHOD"/> prompt="收款类型"/>
<bm:field name="distribution_set_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="DISTRIBUTION_SET_ID" prompt="CSH511.CSH_TRANSACTION.DISTRIBUTION_SET_ID"/> <bm:field name="transaction_date" databaseType="DATE" datatype="java.util.Date" physicalName="TRANSACTION_DATE"
<bm:field name="cashflow_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="CASHFLOW_AMOUNT" prompt="CSH511.CSH_TRANSACTION.CASHFLOW_AMOUNT"/> prompt="CSH511.CSH_TRANSACTION.TRANSACTION_DATE"/>
<bm:field name="currency_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY_CODE" prompt="HLS.CURRENCY"/> <bm:field name="penalty_calc_date" databaseType="DATE" datatype="java.util.Date"
<bm:field name="transaction_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TRANSACTION_AMOUNT" prompt="CSH511.CSH_TRANSACTION.TRANSACTION_AMOUNT"/> physicalName="PENALTY_CALC_DATE" prompt="CSH511.CSH_TRANSACTION.PENALTY_CALC_DATE"/>
<bm:field name="exchange_rate_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXCHANGE_RATE_TYPE" prompt="HLS.EXCHANGE_RATE_TYPE_DESC"/> <bm:field name="bank_slip_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_SLIP_NUM"
<bm:field name="exchange_rate_quotation" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXCHANGE_RATE_QUOTATION" prompt="CSH511.CSH_TRANSACTION.EXCHANGE_RATE_QUOTATION"/> prompt="CSH511.CSH_TRANSACTION.BANK_SLIP_NUM"/>
<bm:field name="exchange_rate" databaseType="NUMBER" datatype="java.lang.Double" physicalName="EXCHANGE_RATE" prompt="HLS.EXCHANGE_RATE"/> <bm:field name="company_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMPANY_ID"
<bm:field name="bank_account_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BANK_ACCOUNT_ID" prompt="CSH511.CSH_TRANSACTION.BANK_ACCOUNT_ID"/> prompt="CSH511.CSH_TRANSACTION.COMPANY_ID"/>
<bm:field name="bp_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CATEGORY" prompt="CSH511.CSH_TRANSACTION.BP_CATEGORY"/> <bm:field name="internal_period_num" databaseType="NUMBER" datatype="java.lang.Long"
<bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID" prompt="CSH511.CSH_TRANSACTION.BP_ID"/> physicalName="INTERNAL_PERIOD_NUM" prompt="CSH511.CSH_TRANSACTION.INTERNAL_PERIOD_NUM"/>
<bm:field name="bp_bank_account_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_BANK_ACCOUNT_ID" prompt="CSH511.CSH_TRANSACTION.BP_BANK_ACCOUNT_ID"/> <bm:field name="period_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PERIOD_NAME"
<bm:field name="bp_bank_account_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_BANK_ACCOUNT_NUM" prompt="CSH511.BANK_ACCOUNT_NUM"/> prompt="HLS.ACCOUNT_PERIOD_NAME"/>
<bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION" prompt="HLS.NOTE"/> <bm:field name="payment_method_id" databaseType="NUMBER" datatype="java.lang.Long"
<bm:field name="handling_charge" databaseType="NUMBER" datatype="java.lang.Double" physicalName="HANDLING_CHARGE" prompt="CSH511.CSH_TRANSACTION.HANDLING_CHARGE"/> physicalName="PAYMENT_METHOD_ID" prompt="HLS.PAYMENT_METHOD"/>
<bm:field name="posted_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="POSTED_FLAG" prompt="CSH511.CSH_TRANSACTION.POSTED_FLAG"/> <bm:field name="distribution_set_id" databaseType="NUMBER" datatype="java.lang.Long"
<bm:field name="reversed_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REVERSED_FLAG" prompt="CSH511.CSH_TRANSACTION.REVERSED_FLAG"/> physicalName="DISTRIBUTION_SET_ID" prompt="CSH511.CSH_TRANSACTION.DISTRIBUTION_SET_ID"/>
<bm:field name="reversed_date" databaseType="DATE" datatype="java.util.Date" physicalName="REVERSED_DATE" prompt="CSH511.CSH_TRANSACTION.REVERSED_DATE"/> <bm:field name="cashflow_amount" databaseType="NUMBER" datatype="java.lang.Double"
<bm:field name="returned_flag" databaseType="VARCHAR2" datatype="java.lang.String" lookupCode="CSH510_RETURN_SELECT" lookupField="returned_flag_desc" physicalName="RETURNED_FLAG" prompt="CSH511.CSH_TRANSACTION.RETURNED_FLAG"/> physicalName="CASHFLOW_AMOUNT" prompt="CSH511.CSH_TRANSACTION.CASHFLOW_AMOUNT"/>
<bm:field name="returned_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="RETURNED_AMOUNT" prompt="CSH511.CSH_TRANSACTION.RETURNED_AMOUNT"/> <bm:field name="currency_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY_CODE"
<bm:field name="write_off_flag" lookupCode="CON_WRITE_OFF_FLAG" lookupField="write_off_flag_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="WRITE_OFF_FLAG" prompt="CSH511.CSH_TRANSACTION.WRITE_OFF_FLAG"/> prompt="HLS.CURRENCY"/>
<bm:field name="write_off_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="WRITE_OFF_AMOUNT" prompt="CSH511.CSH_TRANSACTION.WRITE_OFF_AMOUNT"/> <bm:field name="transaction_amount" databaseType="NUMBER" datatype="java.lang.Double"
<bm:field name="full_write_off_date" databaseType="DATE" datatype="java.util.Date" physicalName="FULL_WRITE_OFF_DATE" prompt="CSH511.CSH_TRANSACTION.FULL_WRITE_OFF_DATE"/> physicalName="TRANSACTION_AMOUNT" prompt="CSH511.CSH_TRANSACTION.TRANSACTION_AMOUNT"/>
<bm:field name="twin_csh_trx_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TWIN_CSH_TRX_ID" prompt="CSH511.CSH_TRANSACTION.TWIN_CSH_TRX_ID"/> <bm:field name="exchange_rate_type" databaseType="VARCHAR2" datatype="java.lang.String"
<bm:field name="return_from_csh_trx_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="RETURN_FROM_CSH_TRX_ID" prompt="CSH511.CSH_TRANSACTION.RETURN_FROM_CSH_TRX_ID"/> physicalName="EXCHANGE_RATE_TYPE" prompt="HLS.EXCHANGE_RATE_TYPE_DESC"/>
<bm:field name="reversed_csh_trx_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REVERSED_CSH_TRX_ID" prompt="CSH511.CSH_TRANSACTION.REVERSED_CSH_TRX_ID"/> <bm:field name="exchange_rate_quotation" databaseType="VARCHAR2" datatype="java.lang.String"
<bm:field name="source_csh_trx_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SOURCE_CSH_TRX_TYPE" prompt="CSH511.CSH_TRANSACTION.SOURCE_CSH_TRX_TYPE"/> physicalName="EXCHANGE_RATE_QUOTATION" prompt="CSH511.CSH_TRANSACTION.EXCHANGE_RATE_QUOTATION"/>
<bm:field name="source_csh_trx_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SOURCE_CSH_TRX_ID" prompt="CSH511.CSH_TRANSACTION.SOURCE_CSH_TRX_ID"/> <bm:field name="exchange_rate" databaseType="NUMBER" datatype="java.lang.Double" physicalName="EXCHANGE_RATE"
<bm:field name="source_doc_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SOURCE_DOC_CATEGORY"/> prompt="HLS.EXCHANGE_RATE"/>
<bm:field name="source_doc_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SOURCE_DOC_TYPE" prompt="CSH511.CSH_TRANSACTION.SOURCE_DOC_TYPE"/> <bm:field name="bank_account_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BANK_ACCOUNT_ID"
<bm:field name="source_doc_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SOURCE_DOC_ID" prompt="CSH511.CSH_TRANSACTION.SOURCE_DOC_ID"/> prompt="CSH511.CSH_TRANSACTION.BANK_ACCOUNT_ID"/>
<bm:field name="source_doc_line_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SOURCE_DOC_LINE_ID" prompt="CSH511.CSH_TRANSACTION.SOURCE_DOC_LINE_ID"/> <bm:field name="bp_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CATEGORY"
<bm:field name="create_je_mothed" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CREATE_JE_MOTHED"/> prompt="CSH511.CSH_TRANSACTION.BP_CATEGORY"/>
<bm:field name="create_je_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CREATE_JE_FLAG"/> <bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID"
<bm:field name="gld_interface_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GLD_INTERFACE_FLAG" prompt="CSH511.CSH_TRANSACTION.GLD_INTERFACE_FLAG"/> prompt="CSH511.CSH_TRANSACTION.BP_ID"/>
<bm:field name="bp_code" expression="(select d.bp_code from hls_bp_master d where d.bp_id=t1.bp_id)" forInsert="false" forUpdate="false" prompt="HLS.BP_CODE"/> <bm:field name="bp_bank_account_id" databaseType="NUMBER" datatype="java.lang.Long"
<bm:field name="bp_name" expression="(select d.bp_name from hls_bp_master d where d.bp_id=t1.bp_id)" forInsert="false" forUpdate="false" prompt="HLS.BP_NAME"/> physicalName="BP_BANK_ACCOUNT_ID" prompt="CSH511.CSH_TRANSACTION.BP_BANK_ACCOUNT_ID"/>
<bm:field name="payment_method_display" expression="(select cp.description from csh_payment_method cp where cp.payment_method_id=t1.payment_method_id)" forInsert="false" forUpdate="false" prompt="HLS.PAYMENT_METHOD"/> <bm:field name="bp_bank_account_num" databaseType="VARCHAR2" datatype="java.lang.String"
<bm:field name="currency_name" expression="(select gc.currency_name from gld_currency_vl gc where gc.currency_code=t1.currency_code)" forInsert="false" forUpdate="false" prompt="HLS.CURRENCY"/> physicalName="BP_BANK_ACCOUNT_NUM" prompt="CSH511.BANK_ACCOUNT_NUM"/>
<bm:field name="bp_category_display" expression="(select b.description from hls_bp_category b where b.bp_category=t1.bp_category)" forInsert="false" forUpdate="false" prompt="CSH511.CSH_TRANSACTION.BP_CATEGORY"/> <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION"
<bm:field name="exchange_rate_type_display" expression="(select tv.type_name from gld_exchangerate_types_vl tv where tv.type_code=t1.exchange_rate_type)" forInsert="false" forUpdate="false" prompt="HLS.EXCHANGE_RATE_TYPE_DESC"/> prompt="HLS.NOTE"/>
<bm:field name="transaction_functional_amount" expression="gld_exchange_rate_pkg.get_currency_exchange(t1.transaction_amount,t1.exchange_rate,t1.exchange_rate_quotation)" forInsert="false" forUpdate="false" prompt="HLS.FUNCTIONAL_AMOUNT"/> <bm:field name="handling_charge" databaseType="NUMBER" datatype="java.lang.Double"
<bm:field name="bank_account_code" expression="(select a.bank_account_code from csh_bank_account a where a.bank_account_id=t1.bank_account_id)" forInsert="false" forUpdate="false" prompt="CSH511.BANK_ACCOUNT_CODE"/> physicalName="HANDLING_CHARGE" prompt="CSH511.CSH_TRANSACTION.HANDLING_CHARGE"/>
<bm:field name="bank_account_name" expression="(select a.bank_account_name from csh_bank_account a where a.bank_account_id=t1.bank_account_id)" forInsert="false" forUpdate="false" prompt="CSH511.BANK_ACCOUNT_NAME"/> <bm:field name="posted_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="POSTED_FLAG"
<bm:field name="bank_account_num" expression="(select a.bank_account_num from csh_bank_account a where a.bank_account_id=t1.bank_account_id)" forInsert="false" forUpdate="false" prompt="CSH511.BANK_ACCOUNT_NUM"/> prompt="CSH511.CSH_TRANSACTION.POSTED_FLAG"/>
<bm:field name="bp_bank_account_code" expression="(select a.bank_account_code from hls_bp_master_bank_account a where a.bank_account_id = t1.bp_bank_account_id)" forInsert="false" forUpdate="false" prompt="CSH511.BP_BANK_ACCOUNT_CODE"/> <bm:field name="reversed_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REVERSED_FLAG"
prompt="CSH511.CSH_TRANSACTION.REVERSED_FLAG"/>
<bm:field name="reversed_date" databaseType="DATE" datatype="java.util.Date" physicalName="REVERSED_DATE"
prompt="CSH511.CSH_TRANSACTION.REVERSED_DATE"/>
<bm:field name="returned_flag" databaseType="VARCHAR2" datatype="java.lang.String"
lookupCode="CSH510_RETURN_SELECT" lookupField="returned_flag_desc" physicalName="RETURNED_FLAG"
prompt="CSH511.CSH_TRANSACTION.RETURNED_FLAG"/>
<bm:field name="returned_amount" databaseType="NUMBER" datatype="java.lang.Double"
physicalName="RETURNED_AMOUNT" prompt="CSH511.CSH_TRANSACTION.RETURNED_AMOUNT"/>
<bm:field name="write_off_flag" lookupCode="CON_WRITE_OFF_FLAG" lookupField="write_off_flag_desc"
databaseType="VARCHAR2" datatype="java.lang.String" physicalName="WRITE_OFF_FLAG"
prompt="CSH511.CSH_TRANSACTION.WRITE_OFF_FLAG"/>
<bm:field name="write_off_amount" databaseType="NUMBER" datatype="java.lang.Double"
physicalName="WRITE_OFF_AMOUNT" prompt="CSH511.CSH_TRANSACTION.WRITE_OFF_AMOUNT"/>
<bm:field name="full_write_off_date" databaseType="DATE" datatype="java.util.Date"
physicalName="FULL_WRITE_OFF_DATE" prompt="CSH511.CSH_TRANSACTION.FULL_WRITE_OFF_DATE"/>
<bm:field name="twin_csh_trx_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TWIN_CSH_TRX_ID"
prompt="CSH511.CSH_TRANSACTION.TWIN_CSH_TRX_ID"/>
<bm:field name="return_from_csh_trx_id" databaseType="NUMBER" datatype="java.lang.Long"
physicalName="RETURN_FROM_CSH_TRX_ID" prompt="CSH511.CSH_TRANSACTION.RETURN_FROM_CSH_TRX_ID"/>
<bm:field name="reversed_csh_trx_id" databaseType="NUMBER" datatype="java.lang.Long"
physicalName="REVERSED_CSH_TRX_ID" prompt="CSH511.CSH_TRANSACTION.REVERSED_CSH_TRX_ID"/>
<bm:field name="source_csh_trx_type" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="SOURCE_CSH_TRX_TYPE" prompt="CSH511.CSH_TRANSACTION.SOURCE_CSH_TRX_TYPE"/>
<bm:field name="source_csh_trx_id" databaseType="NUMBER" datatype="java.lang.Long"
physicalName="SOURCE_CSH_TRX_ID" prompt="CSH511.CSH_TRANSACTION.SOURCE_CSH_TRX_ID"/>
<bm:field name="source_doc_category" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="SOURCE_DOC_CATEGORY"/>
<bm:field name="source_doc_type" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="SOURCE_DOC_TYPE" prompt="CSH511.CSH_TRANSACTION.SOURCE_DOC_TYPE"/>
<bm:field name="source_doc_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SOURCE_DOC_ID"
prompt="CSH511.CSH_TRANSACTION.SOURCE_DOC_ID"/>
<bm:field name="source_doc_line_id" databaseType="NUMBER" datatype="java.lang.Long"
physicalName="SOURCE_DOC_LINE_ID" prompt="CSH511.CSH_TRANSACTION.SOURCE_DOC_LINE_ID"/>
<bm:field name="create_je_mothed" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="CREATE_JE_MOTHED"/>
<bm:field name="create_je_flag" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="CREATE_JE_FLAG"/>
<bm:field name="gld_interface_flag" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="GLD_INTERFACE_FLAG" prompt="CSH511.CSH_TRANSACTION.GLD_INTERFACE_FLAG"/>
<bm:field name="bp_code" expression="(select d.bp_code from hls_bp_master d where d.bp_id=t1.bp_id)"
forInsert="false" forUpdate="false" prompt="HLS.BP_CODE"/>
<bm:field name="bp_name" expression="(select d.bp_name from hls_bp_master d where d.bp_id=t1.bp_id)"
forInsert="false" forUpdate="false" prompt="HLS.BP_NAME"/>
<bm:field name="payment_method_display"
expression="(select cp.description from csh_payment_method cp where cp.payment_method_id=t1.payment_method_id)"
forInsert="false" forUpdate="false" prompt="HLS.PAYMENT_METHOD"/>
<bm:field name="currency_name"
expression="(select gc.currency_name from gld_currency_vl gc where gc.currency_code=t1.currency_code)"
forInsert="false" forUpdate="false" prompt="HLS.CURRENCY"/>
<bm:field name="bp_category_display"
expression="(select b.description from hls_bp_category b where b.bp_category=t1.bp_category)"
forInsert="false" forUpdate="false" prompt="CSH511.CSH_TRANSACTION.BP_CATEGORY"/>
<bm:field name="exchange_rate_type_display"
expression="(select tv.type_name from gld_exchangerate_types_vl tv where tv.type_code=t1.exchange_rate_type)"
forInsert="false" forUpdate="false" prompt="HLS.EXCHANGE_RATE_TYPE_DESC"/>
<bm:field name="transaction_functional_amount"
expression="gld_exchange_rate_pkg.get_currency_exchange(t1.transaction_amount,t1.exchange_rate,t1.exchange_rate_quotation)"
forInsert="false" forUpdate="false" prompt="HLS.FUNCTIONAL_AMOUNT"/>
<bm:field name="bank_account_code"
expression="(select a.bank_account_code from csh_bank_account a where a.bank_account_id=t1.bank_account_id)"
forInsert="false" forUpdate="false" prompt="CSH511.BANK_ACCOUNT_CODE"/>
<bm:field name="bank_account_name"
expression="(select a.bank_account_name from csh_bank_account a where a.bank_account_id=t1.bank_account_id)"
forInsert="false" forUpdate="false" prompt="CSH511.BANK_ACCOUNT_NAME"/>
<bm:field name="bank_account_num"
expression="(select a.bank_account_num from csh_bank_account a where a.bank_account_id=t1.bank_account_id)"
forInsert="false" forUpdate="false" prompt="CSH511.BANK_ACCOUNT_NUM"/>
<bm:field name="bp_bank_account_code"
expression="(select a.bank_account_code from hls_bp_master_bank_account a where a.bank_account_id = t1.bp_bank_account_id)"
forInsert="false" forUpdate="false" prompt="CSH511.BP_BANK_ACCOUNT_CODE"/>
<bm:field name="bp_bank_account_name" forInsert="false" forUpdate="false" prompt="CSH511.BANK_ACCOUNT_NAME"/> <bm:field name="bp_bank_account_name" forInsert="false" forUpdate="false" prompt="CSH511.BANK_ACCOUNT_NAME"/>
<bm:field name="functional_currency_code" expression="(select gb.functional_currency_code from fnd_companies fc, gld_set_of_books gb where fc.company_id = ${/session/@company_id} and fc.set_of_books_id = gb.set_of_books_id)" forInsert="false" forUpdate="false"/> <bm:field name="functional_currency_code"
<bm:field name="rate_method_code" expression="(select t.rate_method_code from gld_exchangerate_types t where t.type_code=t1.exchange_rate_type)" forInsert="false" forUpdate="false"/> expression="(select gb.functional_currency_code from fnd_companies fc, gld_set_of_books gb where fc.company_id = ${/session/@company_id} and fc.set_of_books_id = gb.set_of_books_id)"
<bm:field name="zero_amounts_allowed" expression="(select d.zero_amounts_allowed from csh_bank_account_v d where d.bank_account_id=t1.bank_account_id)" forInsert="false" forUpdate="false"/> forInsert="false" forUpdate="false"/>
<bm:field name="rate_method_code"
expression="(select t.rate_method_code from gld_exchangerate_types t where t.type_code=t1.exchange_rate_type)"
forInsert="false" forUpdate="false"/>
<bm:field name="zero_amounts_allowed"
expression="(select d.zero_amounts_allowed from csh_bank_account_v d where d.bank_account_id=t1.bank_account_id)"
forInsert="false" forUpdate="false"/>
<bm:field name="transaction_type_desc" forInsert="false" forUpdate="false" prompt="HLS.TRANSACTION_TYPE"/> <bm:field name="transaction_type_desc" forInsert="false" forUpdate="false" prompt="HLS.TRANSACTION_TYPE"/>
<bm:field name="receivables_type_desc" expression="decode(t1.receivables_type,null,&apos;其他&apos;,t1.receivables_type)" forInsert="false" forUpdate="false" prompt="收款类型"/> <bm:field name="receivables_type_desc"
<bm:field name="unwrite_off_amount" datatype="java.lang.Double" expression="(nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)-(select nvl(sum(ctr.this_return_amount),0) from csh_transaction_return ctr where ctr.transaction_id = t1.transaction_id and ctr.status = 'APPROVING'))" forInsert="false" forUpdate="false" prompt="HLS.UNWRITEOFF_AMOUNT"/> expression="decode(t1.receivables_type,null,&apos;其他&apos;,t1.receivables_type)" forInsert="false"
<bm:field name="precision" expression="(select g.precision from gld_currency g where g.currency_code =t1.currency_code)" forInsert="false" forUpdate="false"/> forUpdate="false" prompt="收款类型"/>
<bm:field name="reverse_amount" expression="(-1*t1.transaction_amount)" forInsert="false" forUpdate="false" prompt="CSH511.REVERSE_AMOUNT"/> <bm:field name="unwrite_off_amount" datatype="java.lang.Double"
<bm:field name="user_desc" expression="(select su.description from sys_user su where su.user_id=t1.created_by)" forInsert="false" forUpdate="false"/> expression="(nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)-(select nvl(sum(ctr.this_return_amount),0) from csh_transaction_return ctr where ctr.transaction_id = t1.transaction_id and ctr.status = 'APPROVING'))"
<bm:field name="auto_filt_penalty" expression="&apos;N&apos;" forInsert="false" forUpdate="false" prompt="CSH513.AUTO_FILT_PENALTY"/> forInsert="false" forUpdate="false" prompt="HLS.UNWRITEOFF_AMOUNT"/>
<bm:field name="auto_filt_prinicipal_interest" expression="&apos;Y&apos;" forInsert="false" forUpdate="false" prompt="CSH513.AUTO_FILT_PRINICIPAL_INTEREST"/> <bm:field name="returning_amount" databasetype="java.lang.Double"
<bm:field name="returned_flag_desc" forInsert="false" forUpdate="false" prompt="CSH511.CSH_TRANSACTION.RETURNED_FLAG"/> expression="(select nvl(sum(ctr.this_return_amount),0) from csh_transaction_return ctr where ctr.transaction_id = t1.transaction_id and ctr.status = 'APPROVING')"
<bm:field name="unallocate_amount" expression="(nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)-nvl((select sum(i.write_off_amount) from csh_write_off_interface i where i.trx_interface_id = t1.transaction_id and i.record_type is not null),0))" forInsert="false" forceUpdate="false"/>
<bm:field name="precision"
expression="(select g.precision from gld_currency g where g.currency_code =t1.currency_code)"
forInsert="false" forUpdate="false"/>
<bm:field name="reverse_amount" expression="(-1*t1.transaction_amount)" forInsert="false" forUpdate="false"
prompt="CSH511.REVERSE_AMOUNT"/>
<bm:field name="user_desc" expression="(select su.description from sys_user su where su.user_id=t1.created_by)"
forInsert="false" forUpdate="false"/>
<bm:field name="auto_filt_penalty" expression="&apos;N&apos;" forInsert="false" forUpdate="false"
prompt="CSH513.AUTO_FILT_PENALTY"/>
<bm:field name="auto_filt_prinicipal_interest" expression="&apos;Y&apos;" forInsert="false" forUpdate="false"
prompt="CSH513.AUTO_FILT_PRINICIPAL_INTEREST"/>
<bm:field name="returned_flag_desc" forInsert="false" forUpdate="false"
prompt="CSH511.CSH_TRANSACTION.RETURNED_FLAG"/>
<bm:field name="unallocate_amount"
expression="(nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)-nvl((select sum(i.write_off_amount) from csh_write_off_interface i where i.trx_interface_id = t1.transaction_id and i.record_type is not null),0))"
forInsert="false" forUpdate="false"/> forInsert="false" forUpdate="false"/>
<bm:field name="status" expression="nvl(t1.status,&apos;NEW&apos;)" forInsert="false" forUpdate="false"/> <bm:field name="status" expression="nvl(t1.status,&apos;NEW&apos;)" forInsert="false" forUpdate="false"/>
<bm:field name="ref_contract_id"/> <bm:field name="ref_contract_id"/>
...@@ -96,19 +189,30 @@ where transaction_id = ${@transaction_id} ...@@ -96,19 +189,30 @@ where transaction_id = ${@transaction_id}
<bm:field name="ref_v01"/> <bm:field name="ref_v01"/>
<bm:field name="ref_v05"/> <bm:field name="ref_v05"/>
<bm:field name="purpose"/> <bm:field name="purpose"/>
<bm:field name="paid_byother_flag_n" expression="(select code_value_name from sys_code_values_v where code = 'PAID_BYOTHER_FLAG' and code_value = t1.paid_byother_flag)"/> <bm:field name="opposite_band_na"/>
<bm:field name="contract_number" expression="(select cc.contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/> <bm:field name="bank_branch_name"
expression="(select a.bank_branch_name from csh_bank_account_v a where a.bank_account_id=t1.bank_account_id)"
forInsert="false" forUpdate="false" prompt="CSH511.BANK_BRANCH_NAME"/>
<bm:field name="paid_byother_flag_n"
expression="(select code_value_name from sys_code_values_v where code = 'PAID_BYOTHER_FLAG' and code_value = t1.paid_byother_flag)"/>
<bm:field name="contract_number"
expression="(select cc.contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<!--add by chenlingfeng--> <!--add by chenlingfeng-->
<bm:field name="write_off_flag_desc" forInsert="false" forUpdate="false"/> <bm:field name="write_off_flag_desc" forInsert="false" forUpdate="false"/>
<bm:field name="review_status" lookupCode="DS_CSH_REVIEW_STATUS" lookupField="review_status_desc" databaseType="VARCHAR2" datatype="java.lang.String"/> <bm:field name="review_status" lookupCode="DS_CSH_REVIEW_STATUS" lookupField="review_status_desc"
databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="review_status_desc" forInsert="false" forUpdate="false"/> <bm:field name="review_status_desc" forInsert="false" forUpdate="false"/>
<bm:field name="collection_classes"/> <bm:field name="collection_classes"/>
<bm:field name="collection_classes_desc" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DS_COLLECTION_CLASSES' and v.code_value =t1.collection_classes)" forInsert="false" forUpdate="false"/> <bm:field name="collection_classes_desc"
expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DS_COLLECTION_CLASSES' and v.code_value =t1.collection_classes)"
forInsert="false" forUpdate="false"/>
<!--end--> <!--end-->
<!--add by lisitong--> <!--add by lisitong-->
<bm:field name="approving_return_amount" datatype="java.lang.Double" expression="(select nvl(sum(ctr.this_return_amount),0) from csh_transaction_return ctr where ctr.transaction_id = t1.transaction_id and ctr.status = 'APPROVING')" forInsert="false" forUpdate="false" prompt="审批中退款金额"/> <bm:field name="approving_return_amount" datatype="java.lang.Double"
expression="(select nvl(sum(ctr.this_return_amount),0) from csh_transaction_return ctr where ctr.transaction_id = t1.transaction_id and ctr.status = 'APPROVING')"
forInsert="false" forUpdate="false" prompt="审批中退款金额"/>
<!--end--> <!--end-->
</bm:fields> </bm:fields>
<bm:features> <bm:features>
...@@ -118,6 +222,7 @@ where transaction_id = ${@transaction_id} ...@@ -118,6 +222,7 @@ where transaction_id = ${@transaction_id}
<bm:pk-field name="transaction_id"/> <bm:pk-field name="transaction_id"/>
</bm:primary-key> </bm:primary-key>
<bm:data-filters> <bm:data-filters>
<bm:data-filter name="query" expression="(t1.transaction_id=${@transaction_id} and t1.company_id=${/session/@company_id})"/> <bm:data-filter name="query"
expression="(t1.transaction_id=${@transaction_id} and t1.company_id=${/session/@company_id})"/>
</bm:data-filters> </bm:data-filters>
</bm:model> </bm:model>
...@@ -370,7 +370,7 @@ ...@@ -370,7 +370,7 @@
var status = record.get('status'); var status = record.get('status');
var write_off_flag = record.get('write_off_flag'); var write_off_flag = record.get('write_off_flag');
var readOnly = 'Y'; var readOnly = 'Y';
if ((status == 'NEW' || status == 'RETURN') && write_off_flag == 'NOT') { if ((status == 'NEW' || status == 'RETURN') && write_off_flag != 'FULL') {
readOnly = 'N'; readOnly = 'N';
} }
if (name == 'csh531n_detail') { if (name == 'csh531n_detail') {
...@@ -451,25 +451,31 @@ ...@@ -451,25 +451,31 @@
function csh531_new_reverse_write_off() { function csh531_new_reverse_write_off() {
var record = $('csh531n_sap_bankflow_info_result_ds').getSelected()[0]; var record = $('csh531n_sap_bankflow_info_result_ds').getSelected()[0];
if (record && record.get('write_off_flag') == 'FULL') { var returned_amount = record.get('returned_amount') || 0;
Leaf.showConfirm("提示", "您确定反冲现金事务<span style='color:red'>" + record.get('transaction_num') + "</span>吗", function () { if (returned_amount > 0) {
Leaf.request({ Leaf.showInfoMessage("提示", "该事务存在收款退款,不允许反冲");
url: $('csh_reverse_write_off_link').getUrl(),
para: record.data,
success: function () {
csh531n_unlock_current_window();
$('csh531n_sap_bankflow_info_result_ds').query();
}, failure: function () {
csh531n_unlock_current_window();
},
error: function () {
csh531n_unlock_current_window();
},
scope: this
});
});
} else { } else {
Leaf.showInfoMessage("提示", "只能反冲已经核销的现金事务"); if (record && record.get('write_off_flag') != 'NOT') {
Leaf.showConfirm("提示", "您确定反冲现金事务<span style='color:red'>" + record.get('transaction_num') + "</span>吗", function () {
csh531n_lock_current_window();
Leaf.request({
url: $('csh_reverse_write_off_link').getUrl(),
para: record.data,
success: function () {
csh531n_unlock_current_window();
$('csh531n_sap_bankflow_info_result_ds').query();
}, failure: function () {
csh531n_unlock_current_window();
},
error: function () {
csh531n_unlock_current_window();
},
scope: this
});
});
} else {
Leaf.showInfoMessage("提示", "只能反冲已经核销的现金事务");
}
} }
} }
...@@ -489,7 +495,7 @@ ...@@ -489,7 +495,7 @@
<a:dataSet id="receipt_type_ds" lookupCode="RECEIPT_TYPE"/> <a:dataSet id="receipt_type_ds" lookupCode="RECEIPT_TYPE"/>
<a:dataSet id="csh_transaction_receipt_write_off_query_ds" autoCreate="true"> <a:dataSet id="csh_transaction_receipt_write_off_query_ds" autoCreate="true">
<a:fields> <a:fields>
<a:field name="write_off_flag" /> <a:field name="write_off_flag"/>
<a:field name="write_off_flag_desc" displayField="code_value_name" options="con_write_off_flag_ds" <a:field name="write_off_flag_desc" displayField="code_value_name" options="con_write_off_flag_ds"
returnField="write_off_flag" valueField="code_value"/> returnField="write_off_flag" valueField="code_value"/>
<a:field name="status" displayField="code_value_name" options="status_ds" <a:field name="status" displayField="code_value_name" options="status_ds"
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<a:link id="transaction_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/> <a:link id="transaction_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/>
<script src="${/request/@context_path}/javascripts/calculate.js" type="text/javascript"/> <script src="${/request/@context_path}/javascripts/calculate.js" type="text/javascript"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
var submit_flag = 'N';
function csh531n_detail_win_close() { function csh531n_detail_win_close() {
$('${/parameter/@winid}').close(); $('${/parameter/@winid}').close();
} }
...@@ -145,25 +145,25 @@ ...@@ -145,25 +145,25 @@
var left_interest = record.get('left_interest'); var left_interest = record.get('left_interest');
var x_amount; var x_amount;
if (value) { if (value) {
if (value <= left_interest) { if (value <= left_principal) {
if (left_interest > 0) { if (left_principal > 0) {
record.set('write_off_interest', value); record.set('write_off_principal', value);
} else {
record.set('write_off_interest', null);
}
record.set('write_off_principal', null);
} else if (value > left_interest) {
if (left_interest > 0) {
record.set('write_off_interest', left_interest);
} else { } else {
record.set('write_off_interest', null); record.set('write_off_principal', null);
} }
x_amount = value - left_interest; record.set('write_off_interest', null);
} else if (value > left_principal) {
if (left_principal > 0) { if (left_principal > 0) {
record.set('write_off_principal', x_amount); record.set('write_off_principal', left_principal);
} else { } else {
record.set('write_off_principal', null); record.set('write_off_principal', null);
} }
x_amount = value - left_principal;
if (left_interest > 0) {
record.set('write_off_interest', x_amount);
} else {
record.set('write_off_interest', null);
}
} }
} else { } else {
record.set('write_off_interest', null); record.set('write_off_interest', null);
...@@ -279,42 +279,53 @@ ...@@ -279,42 +279,53 @@
} }
function csh531n_write_off() { function csh531n_write_off() {
if (checkAmount('WRITE_OFF')) { var returning_amount = $('csh_transaction_receipt_write_off_detail_ds').getCurrentRecord().get('returning_amount') || 0;
if(submit_flag == 'Y'){ if (returning_amount > 0) {
var record = $('csh_transaction_receipt_write_off_detail_ds').getCurrentRecord(); Leaf.showInfoMessage("提示", "该收款单存在审批中的退款流程,无法进行核销操作!");
}
if (record) { var interfaceRs = $('csh_write_off_interface_ds').getAll();
csh531d_lock_current_window(); var depositRs = $('csh_transaction_deposit_ds').getAll();
var transaction_id = record.get('transaction_id'); var advancedRs = $('csh_transaction_advanced_ds').getAll();
Leaf.request({
url: $('csh531n_csh_confirm_data_link').getUrl(), var allRs = [...interfaceRs,...depositRs,...advancedRs];
para: {
transaction_id: '${/parameter/@transaction_id}', for (var i = 0; i < allRs.length; i++) {
_status: 'update' if (allRs[i].dirty) {
}, Leaf.showInfoMessage("提示", "存在未保存数据,请先保存再进行核销操作!");
success: function () { return;
csh531d_unlock_current_window();
csh531n_detail_win_close();
}, failure: function () {
csh531d_unlock_current_window();
},
error: function () {
csh531d_unlock_current_window();
},
scope: this
});
}
}else{
Leaf.showInfoMessage("提示","请先保存");
} }
}
if (checkAmount('WRITE_OFF')) {
var record = $('csh_transaction_receipt_write_off_detail_ds').getCurrentRecord();
if (record) {
csh531d_lock_current_window();
var transaction_id = record.get('transaction_id');
Leaf.request({
url: $('csh531n_csh_confirm_data_link').getUrl(),
para: {
transaction_id: '${/parameter/@transaction_id}',
_status: 'update'
},
success: function () {
csh531d_unlock_current_window();
csh531n_detail_win_close();
}, failure: function () {
csh531d_unlock_current_window();
},
error: function () {
csh531d_unlock_current_window();
},
scope: this
});
}
} }
} }
function csh531_beforesubmit_fun(ds) { function csh531_beforesubmit_fun(ds) {
var records = ds.getAll(); var records = ds.getAll();
var total = 0; var total = 0;
debugger;
var head_record = $('csh_transaction_receipt_write_off_detail_ds').getCurrentRecord(); var head_record = $('csh_transaction_receipt_write_off_detail_ds').getCurrentRecord();
var unwrite_off_amount = head_record.get('unwrite_off_amount'); var unwrite_off_amount = head_record.get('unwrite_off_amount');
for (var i = 0; i < records.length; i++) { for (var i = 0; i < records.length; i++) {
...@@ -335,12 +346,10 @@ ...@@ -335,12 +346,10 @@
} }
function csh531_submitsuccess(ds) { function csh531_submitsuccess(ds) {
submit_flag = 'Y';
ds.query(); ds.query();
} }
function csh531_submitfailed(ds){ function csh531_submitfailed(ds) {
submit_flag = 'N';
} }
function compareDate(start, end) { function compareDate(start, end) {
...@@ -434,12 +443,12 @@ ...@@ -434,12 +443,12 @@
} }
} }
var header_rec = $('csh_transaction_receipt_write_off_detail_ds').getCurrentRecord(); var header_rec = $('csh_transaction_receipt_write_off_detail_ds').getCurrentRecord();
if (sum > header_rec.get('transaction_amount')) { if (sum > header_rec.get('unwrite_off_amount')) {
Leaf.showInfoMessage('提示', '核销总金额不能大于可核销金额'); Leaf.showInfoMessage('提示', '核销总金额不能大于剩余可核销金额');
return false; return false;
} }
if (type == 'WRITE_OFF') { if (type == 'WRITE_OFF') {
if (sum != header_rec.get('transaction_amount')) { if (sum != header_rec.get('unwrite_off_amount')) {
Leaf.showInfoMessage('提示', '核销总金额不等于可核销金额'); Leaf.showInfoMessage('提示', '核销总金额不等于可核销金额');
return false; return false;
} }
...@@ -447,6 +456,26 @@ ...@@ -447,6 +456,26 @@
return true; return true;
} }
function csh_deposit_edit_function(record, name) {
if ('${/parameter/@readOnly}' == 'Y') {
return;
} else {
if (name == 'write_off_amount') {
return 'csh_transaction_deposit_grid_nf';
}
}
}
function csh_advance_edit_function(record, name) {
if ('${/parameter/@readOnly}' == 'Y') {
return;
} else {
if (name == 'write_off_amount') {
return 'csh_transaction_advanced_grid_nf';
}
}
}
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<a:dataSet id="ds_collection_classes_ds" lookupCode="DS_COLLECTION_CLASSES"/> <a:dataSet id="ds_collection_classes_ds" lookupCode="DS_COLLECTION_CLASSES"/>
...@@ -479,6 +508,8 @@ ...@@ -479,6 +508,8 @@
<a:field name="write_off_flag_desc" readOnly="true"/> <a:field name="write_off_flag_desc" readOnly="true"/>
<a:field name="review_status_desc" readOnly="true"/> <a:field name="review_status_desc" readOnly="true"/>
<a:field name="bank_account_num" readOnly="true"/> <a:field name="bank_account_num" readOnly="true"/>
<a:field name="opposite_band_na" readOnly="true"/>
<a:field name="bank_branch_name" readOnly="true"/>
<a:field name="collection_classes_desc" readOnly="true" options="ds_collection_classes_ds" <a:field name="collection_classes_desc" readOnly="true" options="ds_collection_classes_ds"
displayField="code_value_name" returnField="collection_classes" valueField="code_value"/> displayField="code_value_name" returnField="collection_classes" valueField="code_value"/>
<a:field name="ref_v01"/> <a:field name="ref_v01"/>
...@@ -536,7 +567,7 @@ ...@@ -536,7 +567,7 @@
</a:fields> </a:fields>
<a:events> <a:events>
<a:event name="update" handler="csh531_update_fun"/> <a:event name="update" handler="csh531_update_fun"/>
<a:event name="beforesubmit" handler="csh531_beforesubmit_fun"/> <!-- <a:event name="beforesubmit" handler="csh531_beforesubmit_fun"/>-->
<a:event name="load" handler="csh531_load_fun"/> <a:event name="load" handler="csh531_load_fun"/>
<a:event name="submitsuccess" handler="csh531_submitsuccess"/> <a:event name="submitsuccess" handler="csh531_submitsuccess"/>
<a:event name="submitfailed" handler="csh531_submitfailed"/> <a:event name="submitfailed" handler="csh531_submitfailed"/>
...@@ -627,14 +658,18 @@ ...@@ -627,14 +658,18 @@
<!-- bindTarget="csh_transaction_receipt_write_off_detail_ds"--> <!-- bindTarget="csh_transaction_receipt_write_off_detail_ds"-->
<!-- prompt="CSH513.REMAINING_WRITEOFF_AMOUNT"/>--> <!-- prompt="CSH513.REMAINING_WRITEOFF_AMOUNT"/>-->
</a:box> </a:box>
<a:box column="2" labelWidth="100"> <a:box column="3" labelWidth="100">
<a:textField name="description" bindTarget="csh_transaction_receipt_write_off_detail_ds" <a:textField name="description" bindTarget="csh_transaction_receipt_write_off_detail_ds"
prompt="摘要" prompt="摘要"
readOnly="true" colspan="2" width="370"/> readOnly="true" colspan="2" width="370"/>
<a:numberField name="unwrite_off_amount" prompt="剩余可核销金额"
bindTarget="csh_transaction_receipt_write_off_detail_ds" readOnly="true"/>
</a:box> </a:box>
<a:box column="2" labelWidth="100"> <a:box column="3" labelWidth="100">
<a:textField colspan="2" name="ref_v05" bindTarget="csh_transaction_receipt_write_off_detail_ds" <a:textField colspan="2" name="ref_v05" bindTarget="csh_transaction_receipt_write_off_detail_ds"
prompt="备注" width="370" readOnly="true"/> prompt="备注" width="370" readOnly="true"/>
<a:numberField name="returned_amount" prompt="已退款金额"
bindTarget="csh_transaction_receipt_write_off_detail_ds" readOnly="true"/>
</a:box> </a:box>
<a:box column="2" labelWidth="100"> <a:box column="2" labelWidth="100">
<a:label prompt="附件上传" bindTarget="csh_transaction_receipt_write_off_detail_ds" <a:label prompt="附件上传" bindTarget="csh_transaction_receipt_write_off_detail_ds"
...@@ -663,13 +698,29 @@ ...@@ -663,13 +698,29 @@
<!--</a:box>--> <!--</a:box>-->
</a:fieldSet> </a:fieldSet>
<a:fieldSet labelWidth="250" title="账户信息"> <a:fieldSet labelWidth="250" title="账户信息">
<a:box column="2" labelWidth="100"> <a:box column="3" labelWidth="100">
<a:textField name="bp_bank_account_name" prompt="对方账户" <!-- <a:textField name="bp_bank_account_name" prompt="对方账户"-->
bindTarget="csh_transaction_receipt_write_off_detail_ds"/> <!-- bindTarget="csh_transaction_receipt_write_off_detail_ds"/>-->
<a:textField name="bp_bank_account_num" prompt="对方账号" <!-- <a:textField name="bp_bank_account_num" prompt="对方账号"-->
bindTarget="csh_transaction_receipt_write_off_detail_ds"/> <!-- bindTarget="csh_transaction_receipt_write_off_detail_ds"/>-->
<a:textField name="write_off_flag_desc" prompt="核销状态" <!-- <a:textField name="write_off_flag_desc" prompt="核销状态"-->
bindTarget="csh_transaction_receipt_write_off_detail_ds"/> <!-- bindTarget="csh_transaction_receipt_write_off_detail_ds"/>-->
<a:textField name="bank_account_name" bindTarget="csh_transaction_receipt_write_off_detail_ds"
prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_NAME"/>
<a:textField name="bank_branch_name" bindTarget="csh_transaction_receipt_write_off_detail_ds"
prompt="CSH510.CSH_TRANSACTION.MY_BANK_NAME"/>
<a:textField name="bank_account_num" bindTarget="csh_transaction_receipt_write_off_detail_ds"
prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_USERNAME"/>
<!--对方账户户名-->
<a:textField name="bp_bank_account_name"
bindTarget="csh_transaction_receipt_write_off_detail_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_NAME"/>
<!--对方银行名称-->
<a:textField name="opposite_band_na" bindTarget="csh_transaction_receipt_write_off_detail_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_BANK_NAME"/>
<!--对方账户账号-->
<a:textField name="bp_bank_account_num" bindTarget="csh_transaction_receipt_write_off_detail_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME"/>
</a:box> </a:box>
</a:fieldSet> </a:fieldSet>
</a:form> </a:form>
...@@ -754,9 +805,10 @@ ...@@ -754,9 +805,10 @@
<a:columns> <a:columns>
<a:column name="bp_agent_name" prompt="代理店" width="180" align="center" <a:column name="bp_agent_name" prompt="代理店" width="180" align="center"
editor="csh_transaction_deposit_grid_lv"/> editor="csh_transaction_deposit_grid_lv"/>
<a:column name="write_off_amount" prompt="核销金额" renderer="Leaf.formatMoney" <a:column name="write_off_amount" prompt="核销金额"
editorFunction="csh_deposit_edit_function" renderer="Leaf.formatMoney"
width="180" width="180"
align="right" editor="csh_transaction_deposit_grid_nf" align="right"
footerRenderer="summaryRenderer"/> footerRenderer="summaryRenderer"/>
<a:column name="write_off_date" prompt="核销日期" width="180" align="center" <a:column name="write_off_date" prompt="核销日期" width="180" align="center"
renderer="Leaf.formatDate" editor="csh_transaction_deposit_grid_dp"/> renderer="Leaf.formatDate" editor="csh_transaction_deposit_grid_dp"/>
...@@ -779,9 +831,10 @@ ...@@ -779,9 +831,10 @@
<a:columns> <a:columns>
<a:column name="bp_name" prompt="商业伙伴" width="180" align="center" <a:column name="bp_name" prompt="商业伙伴" width="180" align="center"
editor="csh_transaction_advanced_grid_lv"/> editor="csh_transaction_advanced_grid_lv"/>
<a:column name="write_off_amount" prompt="核销金额" renderer="Leaf.formatMoney" <a:column name="write_off_amount" prompt="核销金额"
editorFunction="csh_advance_edit_function" renderer="Leaf.formatMoney"
width="180" width="180"
align="right" editor="csh_transaction_advanced_grid_nf" align="right"
footerRenderer="summaryRenderer"/> footerRenderer="summaryRenderer"/>
<a:column name="write_off_date" prompt="核销日期" width="180" align="center" <a:column name="write_off_date" prompt="核销日期" width="180" align="center"
renderer="Leaf.formatDate" editor="csh_transaction_advanced_grid_dp"/> renderer="Leaf.formatDate" editor="csh_transaction_advanced_grid_dp"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment