Commit 59f0c380 authored by stone's avatar stone

【fix】修改税额生成逻辑

parent 500d63c5
...@@ -48,6 +48,28 @@ ...@@ -48,6 +48,28 @@
{ {
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
return; return;
}
//判断本次开票金额是否为租金,本金,和利息之中某一个
var selectedDs=$('selectedDs').getAll();
for(var i=0;i<selectedDs.length;i++){
var billing_amount=selectedDs[i].get('billing_amount');
var due_amount=selectedDs[i].get('due_amount');
var principal=selectedDs[i].get('principal');
var interest=selectedDs[i].get('interest');
var cf_billing_amount=selectedDs[i].get('cf_billing_amount');
if(billing_amount!=due_amount &&billing_amount!=principal &&billing_amount!=interest){
$L.showErrorMessage("提示","本次开票金额需与应收金额,应收本金,应收利息中的某一金额一致!");
return;
}
if(billing_amount==cf_billing_amount){
$L.showErrorMessage("提示","该金额已经开票过!");
return;
}
} }
var datas = ds.getJsonData(); var datas = ds.getJsonData();
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
var link_function = ''; var link_function = '';
window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record; window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'function_tips') { if (name == 'function_tips') {
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">罚息减免信息需要在测算后才展示</a>'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">违约金减免信息需要在测算后才展示</a>';
} }
}; };
]]></script> ]]></script>
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
param['case_status_submit'] = record.data.status; param['case_status_submit'] = record.data.status;
param['maintain_type'] = 'INSERT'; param['maintain_type'] = 'INSERT';
param['record_id'] = record.data.record_id; param['record_id'] = record.data.record_id;
param['url_title'] = '罚息减免维护'; param['url_title'] = '违约金减免维护';
param['winid'] = '${/parameter/@layout_code}_maintain_win_id' param['winid'] = '${/parameter/@layout_code}_maintain_win_id'
hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}_contract_penalty_modify_link', ds_id); hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}_contract_penalty_modify_link', ds_id);
} }
......
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