Commit c8ab0da5 authored by niminmin's avatar niminmin

Merge branch 'feature/收款维护开发' into develop

parents cc615461 f2011154
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
Where ctr.transaction_id = cw.csh_transaction_id Where ctr.transaction_id = cw.csh_transaction_id
and al.cashflow_id = cw.cashflow_id and al.cashflow_id = cw.cashflow_id
and cw.reversed_flag='N' and cw.reversed_flag='N'
and cw.cf_item<>2
and ctr.paid_byother_flag='T'),0,'F','T') paid_byother_flag, and ctr.paid_byother_flag='T'),0,'F','T') paid_byother_flag,
(Select v.code_value_name (Select v.code_value_name
From sys_code_values_v v From sys_code_values_v v
...@@ -67,6 +68,7 @@ ...@@ -67,6 +68,7 @@
Where ctr.transaction_id = cw.csh_transaction_id Where ctr.transaction_id = cw.csh_transaction_id
and al.cashflow_id = cw.cashflow_id and al.cashflow_id = cw.cashflow_id
and cw.reversed_flag='N' and cw.reversed_flag='N'
and cw.cf_item<>2
and ctr.paid_byother_flag='T'),0,'F','T')) paid_byother_flag_n, and ctr.paid_byother_flag='T'),0,'F','T')) paid_byother_flag_n,
(case when al.cf_item<>'9' then cwo.received_amount else (case when al.cf_item<>'9' then cwo.received_amount else
al.total_amount end)received_amount, al.total_amount end)received_amount,
...@@ -77,6 +79,7 @@ ...@@ -77,6 +79,7 @@
Where ctr.transaction_id = cw.csh_transaction_id Where ctr.transaction_id = cw.csh_transaction_id
and al.cashflow_id = cw.cashflow_id and al.cashflow_id = cw.cashflow_id
and cw.reversed_flag='N' and cw.reversed_flag='N'
and cw.cf_item<>2
and nvl(ctr.guarantor_name_duty,'N')='Y'),0,'N','Y') guarantor_name_duty, and nvl(ctr.guarantor_name_duty,'N')='Y'),0,'N','Y') guarantor_name_duty,
(Select to_char(max(cw.write_off_date),'yyyy-mm-dd') (Select to_char(max(cw.write_off_date),'yyyy-mm-dd')
From csh_transaction ctr,csh_write_off cw From csh_transaction ctr,csh_write_off cw
...@@ -95,6 +98,7 @@ ...@@ -95,6 +98,7 @@
And alw.cashflow_id = cco.cashflow_id And alw.cashflow_id = cco.cashflow_id
and cw.reversed_flag='N' and cw.reversed_flag='N'
and ctr.paid_byother_flag='T' and ctr.paid_byother_flag='T'
and cw.cf_item<>2
and nvl(ctr.guarantor_name_duty,'N')='N')paid_byother_sum_flag, and nvl(ctr.guarantor_name_duty,'N')='N')paid_byother_sum_flag,
null attachment null attachment
From acr_invoice_apply aa, From acr_invoice_apply aa,
......
...@@ -80,6 +80,6 @@ ...@@ -80,6 +80,6 @@
<bm:query-field field="write_off_id" queryOperator="="/> <bm:query-field field="write_off_id" queryOperator="="/>
<bm:query-field field="csh_transaction_id" queryOperator="="/> <bm:query-field field="csh_transaction_id" queryOperator="="/>
<bm:query-field field="reversed_flag" queryOperator="="/> <bm:query-field field="reversed_flag" queryOperator="="/>
<bm:query-field name="reverse_detail_flag" queryExpression="((nvl(${@deposit_type},'N')=&apos;Y&apos; and t1.write_off_type=&apos;DEPOSIT_CREDIT&apos;)or(${@reverse_detail_flag}=&apos;Y&apos; and nvl(${@deposit_type},'N') in(&apos;N&apos;,null) and t1.write_off_type in (&apos;RECEIPT_CREDIT&apos;,&apos;RECEIPT_ADVANCE_RECEIPT&apos;,&apos;ADVANCE_RECEIPT_CREDIT&apos;,&apos;DEPOSIT&apos;,&apos;RISK&apos;,&apos;DEPOSIT_CUS&apos;,&apos;RECEIPT_NONBUSINESS&apos;)))"/> <bm:query-field name="reverse_detail_flag" queryExpression="((nvl(${@deposit_type},'N')=&apos;Y&apos; and t1.write_off_type=&apos;DEPOSIT_CREDIT&apos;)or(${@reverse_detail_flag}=&apos;Y&apos; and nvl(${@deposit_type},'N') in(&apos;N&apos;,null) and t1.write_off_type in (&apos;RECEIPT_CREDIT&apos;,&apos;RECEIPT_ADVANCE_RECEIPT&apos;,&apos;ADVANCE_RECEIPT_CREDIT&apos;,&apos;DEPOSIT&apos;,&apos;RISK&apos;,&apos;DEPOSIT_CUS&apos;,&apos;RECEIPT_NONBUSINESS&apos;,&apos;RECEIPT_DEPOSIT_POOL&apos;)))"/>
</bm:query-fields> </bm:query-fields>
</bm:model> </bm:model>
...@@ -58,20 +58,18 @@ select t.parent_company_id company_id ...@@ -58,20 +58,18 @@ select t.parent_company_id company_id
<bm:query-field field="dd_bank_account_name" queryOperator="="/> <bm:query-field field="dd_bank_account_name" queryOperator="="/>
<!--<bm:query-field name="bp_id" <!--<bm:query-field name="bp_id"
queryExpression="(t.bp_id_tenant = ${@bp_id} or t.bp_id_agent_level1 = ${@bp_id} or ((select bp_category from hls_bp_master where bp_id = ${@bp_id}) = 'VENDER'))"/>--> queryExpression="(t.bp_id_tenant = ${@bp_id} or t.bp_id_agent_level1 = ${@bp_id} or ((select bp_category from hls_bp_master where bp_id = ${@bp_id}) = 'VENDER'))"/>-->
<bm:query-field name="bp_id" queryExpression="(Exists (Select 1 From (Select h.bp_id From hls_bp_master h Where h.bp_name = (Select hbm.bp_name From hls_bp_master hbm Where hbm.bp_id = ${@bp_id})) t1 Where t1.bp_id = t.bp_id_tenant) Or Exists <bm:query-field name="bp_id" queryExpression="(Exists (Select 1
From hls_bp_master h, hls_bp_master_role hbr
Where h.bp_id = ${@bp_id}
and hbr.bp_id = h.bp_id
and hbr.bp_type = 'TENANT'
and h.bp_id = t.bp_id_tenant) Or not Exists
(Select 1 (Select 1
From (Select h.bp_id From hls_bp_master h, hls_bp_master_role hbr
From hls_bp_master h Where h.bp_id = ${@bp_id}
Where h.bp_name = and hbr.bp_id = h.bp_id
(Select hbm.bp_name and hbr.bp_type = 'TENANT'
From hls_bp_master hbm ))"/>
Where hbm.bp_id = ${@bp_id})) t2
Where t2.bp_id = t.bp_id_agent_level1) Or Exists
(Select 1
From con_contract_lease_item ccli, hls_lease_item hli
Where ccli.lease_item_id = hli.lease_item_id
And hli.vender_id = ${@bp_id}
And t.contract_id = ccli.contract_id))"/>
<bm:query-field name="bp_name" queryExpression="t.bp_name like '%' || ${@bp_name} || '%'"/> <bm:query-field name="bp_name" queryExpression="t.bp_name like '%' || ${@bp_name} || '%'"/>
</bm:query-fields> </bm:query-fields>
</bm:model> </bm:model>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<bm:field name="write_off_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="WRITE_OFF_AMOUNT" prompt="核销金额"/> <bm:field name="write_off_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="WRITE_OFF_AMOUNT" prompt="核销金额"/>
<bm:field name="write_off_date" databaseType="DATE" datatype="java.util.Date" physicalName="WRITE_OFF_DATE" prompt="CSH_TRANSACTION_PLAN.WRITE_OFF_DATE"/> <bm:field name="write_off_date" databaseType="DATE" datatype="java.util.Date" physicalName="WRITE_OFF_DATE" prompt="CSH_TRANSACTION_PLAN.WRITE_OFF_DATE"/>
<bm:field name="company_id" databaseType="NUMBER" databasetype="java.lang.Long" physicalName="COMPANY_ID" prompt="CSH_TRANSACTION_PLAN.COMPANY_ID"/> <bm:field name="company_id" databaseType="NUMBER" databasetype="java.lang.Long" physicalName="COMPANY_ID" prompt="CSH_TRANSACTION_PLAN.COMPANY_ID"/>
<bm:field name="create_wf_flag_desc" expression="(decode(t1.create_wf_flag,'Y','是','否'))"/> <bm:field name="create_wf_flag_desc" expression="(decode(t1.create_wf_flag,'Y','是','否'))" forInsert="false" forceUpdate="false"/>
<bm:field name="create_wf_flag"/> <bm:field name="create_wf_flag"/>
</bm:fields> </bm:fields>
<bm:query-fields> <bm:query-fields>
......
...@@ -109,6 +109,7 @@ ...@@ -109,6 +109,7 @@
<bm:data-filter name="query" expression="(t1.company_id=${/session/@company_id})"/> <bm:data-filter name="query" expression="(t1.company_id=${/session/@company_id})"/>
<bm:data-filter name="query" expression="(t1.transaction_type in (&apos;DEPOSIT&apos;))"/> <bm:data-filter name="query" expression="(t1.transaction_type in (&apos;DEPOSIT&apos;))"/>
<bm:data-filter name="query" expression="(t1.ref_contract_id is null)"/> <bm:data-filter name="query" expression="(t1.ref_contract_id is null)"/>
<bm:data-filter name="query" expression="(nvl(t1.reversed_flag,'N') = 'N')"/>
<bm:data-filter name="query" expression="(t1.confirmed_flag not in('ACCAUDITING','NEW','CT_REJECTED'))"/> <bm:data-filter name="query" expression="(t1.confirmed_flag not in('ACCAUDITING','NEW','CT_REJECTED'))"/>
<bm:data-filter name="query" expression="((nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)) >0)"/> <bm:data-filter name="query" expression="((nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)) >0)"/>
</bm:data-filters> </bm:data-filters>
......
...@@ -99,7 +99,6 @@ ...@@ -99,7 +99,6 @@
return '<a href="javascript:acr610_detail_grid_readonly(' + record.id + ',' + record.get('invoice_hd_wfl_id') + ');">' + value + '</a>'; return '<a href="javascript:acr610_detail_grid_readonly(' + record.id + ',' + record.get('invoice_hd_wfl_id') + ');">' + value + '</a>';
} }
if (name == 'attachment') { if (name == 'attachment') {
if(record.get('cf_item') != '2') {
if (record.get('invoice_kind') == '0') { if (record.get('invoice_kind') == '0') {
if (record.get('paid_byother_flag') == 'T') { if (record.get('paid_byother_flag') == 'T') {
if (record.get('guarantor_name_duty') != 'Y' || record.get('guarantor_name_duty') == 'NULL') { if (record.get('guarantor_name_duty') != 'Y' || record.get('guarantor_name_duty') == 'NULL') {
...@@ -115,7 +114,6 @@ ...@@ -115,7 +114,6 @@
} }
} }
} }
}
if (name == 'received_amount') { if (name == 'received_amount') {
debugger; debugger;
if ((!Leaf.isEmpty(value) && value > 0)&&record.get('cf_item') != '9') { if ((!Leaf.isEmpty(value) && value > 0)&&record.get('cf_item') != '9') {
......
...@@ -99,7 +99,6 @@ ...@@ -99,7 +99,6 @@
return '<a href="javascript:acr610_detail_grid_readonly(' + record.id + ',' + record.get('invoice_hd_wfl_id') + ');">' + value + '</a>'; return '<a href="javascript:acr610_detail_grid_readonly(' + record.id + ',' + record.get('invoice_hd_wfl_id') + ');">' + value + '</a>';
} }
if (name == 'attachment') { if (name == 'attachment') {
if(record.get('cf_item') != '2') {
if (record.get('invoice_kind') == '0') { if (record.get('invoice_kind') == '0') {
if (record.get('paid_byother_flag') == 'T') { if (record.get('paid_byother_flag') == 'T') {
if (record.get('guarantor_name_duty') != 'Y' || record.get('guarantor_name_duty') == 'NULL') { if (record.get('guarantor_name_duty') != 'Y' || record.get('guarantor_name_duty') == 'NULL') {
...@@ -115,7 +114,6 @@ ...@@ -115,7 +114,6 @@
} }
} }
} }
}
if (name == 'received_amount') { if (name == 'received_amount') {
if ((!Leaf.isEmpty(value) && value > 0)&&record.get('cf_item') != '9') { if ((!Leaf.isEmpty(value) && value > 0)&&record.get('cf_item') != '9') {
return '<a href="javascript:csh_write_off_detail(' + record.id + ',' + record.get('invoice_hd_id') + ');">' + Leaf.formatMoney(value) + '</a>'; return '<a href="javascript:csh_write_off_detail(' + record.id + ',' + record.get('invoice_hd_id') + ');">' + Leaf.formatMoney(value) + '</a>';
......
...@@ -80,6 +80,12 @@ ...@@ -80,6 +80,12 @@
function csh511_receipt_save() { function csh511_receipt_save() {
var record=$('csh_transaction_receipt_head_ds').getAt(0); var record=$('csh_transaction_receipt_head_ds').getAt(0);
if (record.get('collection_classes') == 'COMBINED') {
if (record.get('paid_byother_flag') != 'T'||record.get('bp_category')!='AGENT') {
Leaf.showMessage('${l:PROMPT}', '混合类款项为代理店代付,请检查代付标志和所选商业伙伴!');
return;
}
}
// Leaf.Masker.mask(Ext.getBody()); // Leaf.Masker.mask(Ext.getBody());
// Leaf.request({ // Leaf.request({
// url: $('csh510_update_bp_info_link').getUrl(), // url: $('csh510_update_bp_info_link').getUrl(),
......
...@@ -55,6 +55,12 @@ ...@@ -55,6 +55,12 @@
//不将这条数据传递到数组中 //不将这条数据传递到数组中
continue; continue;
} }
if (record.get('collection_classes') == 'COMBINED') {
if (record.get('paid_byother_flag') != 'T'||record.get('bp_category')!='AGENT') {
Leaf.showMessage('${l:PROMPT}', '混合类款项为代理店代付,请检查代付标志和所选商业伙伴!');
return;
}
}
//否则的话添加必要的字段 //否则的话添加必要的字段
record.set('receipt_type', 'IMPORT'); record.set('receipt_type', 'IMPORT');
record.set('bank_account_num', record.get('attribute_1')); record.set('bank_account_num', record.get('attribute_1'));
......
...@@ -95,6 +95,14 @@ ...@@ -95,6 +95,14 @@
$('csh511_receipt_save').disable(); $('csh511_receipt_save').disable();
if ($('csh_transaction_receipt_head_ds').validate()) { if ($('csh_transaction_receipt_head_ds').validate()) {
var record = $('csh_transaction_receipt_head_ds').getAt(0); var record = $('csh_transaction_receipt_head_ds').getAt(0);
if (record.get('collection_classes') == 'COMBINED') {
if (record.get('paid_byother_flag') != 'T'||record.get('bp_category')!='AGENT') {
Leaf.showMessage('${l:PROMPT}', '混合类款项为代理店代付,请检查代付标志和所选商业伙伴!');
$('csh511_receipt_save').enable();
return;
}
}
if (flag != 'Y') { if (flag != 'Y') {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.SAVING}'); Leaf.Masker.mask(Ext.getBody(), '${l:HLS.SAVING}');
} }
...@@ -263,7 +271,7 @@ ...@@ -263,7 +271,7 @@
// record.getField('guarantor_name_duty_desc').setRequired(false); // record.getField('guarantor_name_duty_desc').setRequired(false);
// } // }
// } // }
else if (name =='bp_code') { else if (name == 'bp_code') {
var bp_id = record.get('bp_id'); var bp_id = record.get('bp_id');
Leaf.request({ Leaf.request({
url: $('extra_nam_csh_transaction_receipt_data_link_id').getUrl(), url: $('extra_nam_csh_transaction_receipt_data_link_id').getUrl(),
...@@ -291,12 +299,12 @@ ...@@ -291,12 +299,12 @@
success: function (res) { success: function (res) {
var unit_code = res.result.unit_code; var unit_code = res.result.unit_code;
if (unit_code == 241 || unit_code == 610) { if (unit_code == 241 || unit_code == 610) {
if(record.get('paid_byother_flag') == 'T'){ if (record.get('paid_byother_flag') == 'T') {
record.getField('guarantor_name_duty_desc').setReadOnly(false); record.getField('guarantor_name_duty_desc').setReadOnly(false);
record.set('guarantor_name_duty_desc', '是'); record.set('guarantor_name_duty_desc', '是');
record.set('guarantor_name_duty', 'Y'); record.set('guarantor_name_duty', 'Y');
record.getField('guarantor_name_duty_desc').setRequired(true); record.getField('guarantor_name_duty_desc').setRequired(true);
}else if(record.get('paid_byother_flag') == 'F'){ } else if (record.get('paid_byother_flag') == 'F') {
record.getField('guarantor_name_duty_desc').setReadOnly(true); record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', '否'); record.set('guarantor_name_duty_desc', '否');
record.set('guarantor_name_duty', 'N'); record.set('guarantor_name_duty', 'N');
...@@ -333,10 +341,10 @@ ...@@ -333,10 +341,10 @@
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
} }
}); });
}else if(name == 'paid_byother_flag'){ } else if (name == 'paid_byother_flag') {
if(record.get('paid_byother_flag') =='T'){ if (record.get('paid_byother_flag') == 'T') {
var extra_id = record.get('bp_id'); var extra_id = record.get('bp_id');
if (extra_id != null){ if (extra_id != null) {
Leaf.request({ Leaf.request({
url: $('get_extra_code_csh_transaction_receipt_data_link_id').getUrl(), url: $('get_extra_code_csh_transaction_receipt_data_link_id').getUrl(),
para: {bp_id: extra_id}, para: {bp_id: extra_id},
...@@ -362,15 +370,15 @@ ...@@ -362,15 +370,15 @@
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
} }
}); });
}else { } else {
record.getField('guarantor_name_duty_desc').setReadOnly(false); record.getField('guarantor_name_duty_desc').setReadOnly(false);
record.set('guarantor_name_duty_desc', '是'); record.set('guarantor_name_duty_desc', '是');
record.set('guarantor_name_duty', 'Y'); record.set('guarantor_name_duty', 'Y');
record.getField('guarantor_name_duty_desc').setRequired(true); record.getField('guarantor_name_duty_desc').setRequired(true);
} }
}else if(record.get('paid_byother_flag') =='F'){ } else if (record.get('paid_byother_flag') == 'F') {
var extra_id = record.get('bp_id'); var extra_id = record.get('bp_id');
if (extra_id != undefined){ if (extra_id != undefined) {
Leaf.request({ Leaf.request({
url: $('get_extra_code_csh_transaction_receipt_data_link_id').getUrl(), url: $('get_extra_code_csh_transaction_receipt_data_link_id').getUrl(),
para: {bp_id: extra_id}, para: {bp_id: extra_id},
...@@ -396,7 +404,7 @@ ...@@ -396,7 +404,7 @@
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
} }
}); });
}else { } else {
record.getField('guarantor_name_duty_desc').setReadOnly(true); record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', '否'); record.set('guarantor_name_duty_desc', '否');
record.set('guarantor_name_duty', 'N'); record.set('guarantor_name_duty', 'N');
...@@ -405,6 +413,7 @@ ...@@ -405,6 +413,7 @@
} }
} }
} }
// function onAdd_csh511_receipt(ds, record) { // function onAdd_csh511_receipt(ds, record) {
// record.set('precision',2); // record.set('precision',2);
// record.set('zero_amounts_allowed','N'); // record.set('zero_amounts_allowed','N');
...@@ -426,8 +435,8 @@ ...@@ -426,8 +435,8 @@
record.set('currency_name', '人民币'); record.set('currency_name', '人民币');
record.getField('guarantor_name_duty_desc').setReadOnly(true); record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc','否'); record.set('guarantor_name_duty_desc', '否');
record.set('guarantor_name_duty','N'); record.set('guarantor_name_duty', 'N');
} }
...@@ -525,7 +534,7 @@ ...@@ -525,7 +534,7 @@
}); });
} else { } else {
Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!'); Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!');
return;
} }
} }
...@@ -590,7 +599,8 @@ ...@@ -590,7 +599,8 @@
</a:field> </a:field>
<!--担保人履行担保义务--> <!--担保人履行担保义务-->
<a:field name="guarantor_name_duty_desc" displayField="code_value_name" options="yes_no_ds" prompt="担保人履行担保义务" returnField="guarantor_name_duty" valueField="code_value"/> <a:field name="guarantor_name_duty_desc" displayField="code_value_name" options="yes_no_ds"
prompt="担保人履行担保义务" returnField="guarantor_name_duty" valueField="code_value"/>
<a:field name="guarantor_name_duty" required="true"/> <a:field name="guarantor_name_duty" required="true"/>
<!-- <a:field name="bank_slip_num" lovGridHeight="350" lovHeight="600" lovService="csh.CSH510.csh_transaction_contract_query" lovWidth="1200" title="合同编号"> <!-- <a:field name="bank_slip_num" lovGridHeight="350" lovHeight="600" lovService="csh.CSH510.csh_transaction_contract_query" lovWidth="1200" title="合同编号">
...@@ -669,8 +679,9 @@ ...@@ -669,8 +679,9 @@
<a:field name="bp_bank_account_num"/> <a:field name="bp_bank_account_num"/>
<a:field name="bp_bank_account_name" required="true"/> <a:field name="bp_bank_account_name" required="true"/>
<a:field name="collection_classes" /> <a:field name="collection_classes"/>
<a:field name="collection_classes_desc" required="true" options="ds_collection_classes_ds" prompt="款项用途" <a:field name="collection_classes_desc" required="true" options="ds_collection_classes_ds"
prompt="款项用途"
displayField="code_value_name" returnField="collection_classes" valueField="code_value"/> displayField="code_value_name" returnField="collection_classes" valueField="code_value"/>
<a:field name="paid_byother_flag_n" options="PAID_BYOTHER_FLAG_DS" returnField="paid_byother_flag" <a:field name="paid_byother_flag_n" options="PAID_BYOTHER_FLAG_DS" returnField="paid_byother_flag"
displayField="code_value_name" valueField="code_value" required="true"/> displayField="code_value_name" valueField="code_value" required="true"/>
...@@ -749,7 +760,7 @@ ...@@ -749,7 +760,7 @@
<!--代理店简称--> <!--代理店简称-->
<a:lov name="extra_nam" bindTarget="csh_transaction_receipt_head_ds" <a:lov name="extra_nam" bindTarget="csh_transaction_receipt_head_ds"
prompt="代理店简称" width="180" readOnly="true" /> prompt="代理店简称" width="180" readOnly="true"/>
</a:hBox> </a:hBox>
<a:hBox style="width:800px"> <a:hBox style="width:800px">
...@@ -758,7 +769,7 @@ ...@@ -758,7 +769,7 @@
bindTarget="csh_transaction_receipt_head_ds"/> bindTarget="csh_transaction_receipt_head_ds"/>
<!--担保人履行担保义务--> <!--担保人履行担保义务-->
<a:comboBox name="guarantor_name_duty_desc" bindTarget="csh_transaction_receipt_head_ds" <a:comboBox name="guarantor_name_duty_desc" bindTarget="csh_transaction_receipt_head_ds"
prompt="担保人履行担保义务" width="180" /> prompt="担保人履行担保义务" width="180"/>
</a:hBox> </a:hBox>
</a:fieldSet> </a:fieldSet>
<!--删除下面的字段 currency_name,bank_account_name,banka,bank_branch_name,bank_account_num,bank_account_type_name,exchange_rate_type_display--> <!--删除下面的字段 currency_name,bank_account_name,banka,bank_branch_name,bank_account_num,bank_account_type_name,exchange_rate_type_display-->
......
...@@ -390,6 +390,8 @@ ...@@ -390,6 +390,8 @@
readOnly: readOnly, readOnly: readOnly,
interfaceQueryFlag: interfaceQueryFlag, interfaceQueryFlag: interfaceQueryFlag,
approval_flag: approval_flag, approval_flag: approval_flag,
collection_classes:record.get('collection_classes'),
transaction_type:transaction_type||'RECEIPT',
winid: 'csh_write_off_window' winid: 'csh_write_off_window'
}, },
url: $('batch_detail_link').getUrl(), url: $('batch_detail_link').getUrl(),
......
...@@ -399,6 +399,8 @@ ...@@ -399,6 +399,8 @@
readOnly: readOnly, readOnly: readOnly,
interfaceQueryFlag: interfaceQueryFlag, interfaceQueryFlag: interfaceQueryFlag,
approval_flag: approval_flag, approval_flag: approval_flag,
collection_classes:record.get('collection_classes'),
transaction_type:transaction_type||'RECEIPT',
winid: 'csh_write_off_window' winid: 'csh_write_off_window'
}, },
url: $('batch_detail_link').getUrl(), url: $('batch_detail_link').getUrl(),
......
...@@ -130,6 +130,10 @@ ...@@ -130,6 +130,10 @@
url = $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl(); url = $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl();
// Leaf.showMessage('${l:PROMPT}', '${l:HLS.CALC_TYPE_IS_NULL}'); // Leaf.showMessage('${l:PROMPT}', '${l:HLS.CALC_TYPE_IS_NULL}');
// return; // return;
}
if (head_record.dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return;
} }
if (record.dirty == true) { if (record.dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
...@@ -513,14 +517,20 @@ ...@@ -513,14 +517,20 @@
if (record.get('bp_category') == 'TENANT') { if (record.get('bp_category') == 'TENANT') {
//实际为不选中 //实际为不选中
Leaf.showMessage('${l:HLS.PROMPT}', '无法删除主承租人!'); Leaf.showMessage('${l:HLS.PROMPT}', '无法删除主承租人!');
//ds.unSelect(record);
//ds.select(record);
setTimeout(function () {
ds.unSelect(record); ds.unSelect(record);
ds.Select(record); }, 1);
} }
if (record.get('bp_category') == 'AGENT') { if (record.get('bp_category') == 'AGENT') {
//实际为不选中 //实际为不选中
Leaf.showMessage('${l:HLS.PROMPT}', '无法删除经销商!'); Leaf.showMessage('${l:HLS.PROMPT}', '无法删除经销商!');
// ds.unSelect(record);
// ds.select(record);
setTimeout(function () {
ds.unSelect(record); ds.unSelect(record);
ds.Select(record); }, 1);
} }
} }
}; };
......
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