Commit ccc823aa authored by 18083's avatar 18083

跨月核销反冲改造

parent 43bd122b
......@@ -33,7 +33,8 @@
t.ref_d05,
t.wfl_instance_id,
t.approval_status,
nvl(t.ignore_invoice_check_flag,'N') ignore_invoice_check_flag
nvl(t.ignore_invoice_check_flag,'N') ignore_invoice_check_flag,
nvl(t.extend_month_flag,'N') extend_month_flag
From csh_transaction_wfl t #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
......
......@@ -27,10 +27,9 @@
csh_transaction_wfl_pkg.save_check_invoice_flag(
p_transaction_wfl_id =>${@transaction_wfl_id},
p_check_flag =>${@check_flag},
p_extend_month_flag =>${@extend_month_flag},
p_user_id => ${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: trd
$Date: 2023-4-27下午03:25:19
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select csh_transaction_wfl_pkg.extend_next_month_check(p_transaction_wfl_id => ${@transaction_wfl_id})check_flag from dual
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -8,7 +8,8 @@
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure>
<a:model-query model="cont.CON620.get_sys_role" rootPath="role_info"/>
<a:model-query model="csh.CSH514.workflow_info" defaultWhereClause="t2.transaction_wfl_id=${/parameter/@transaction_wfl_id}" rootPath="wolkflow_path"></a:model-query>
<a:model-query model="csh.CSH514.workflow_info" defaultWhereClause="t2.transaction_wfl_id=${/parameter/@transaction_wfl_id}" rootPath="wolkflow_path"></a:model-query>
<a:model-query model="csh.CSH514.extend_next_month_check" rootPath="extend_month" />
</a:init-procedure>
<a:view>
<a:link id="csh_transaction_write_off_reverse_link_id" url="${/request/@context_path}/modules/csh/CSH514/csh_transaction_write_off_reverse_new.lsc"/>
......@@ -24,15 +25,24 @@
}
if("${/model/role_info/record/@role_code}"=="0014") {
zjwfl5110_ApproveChecker_add('zjwfl5110_submit', function (type) {
debugger;
var root_ds = $('${/parameter/@layout_code}_virtual_ds');
if (type == 'agree') {
var headers_ds = $('csh_transaction_receipt_write_off_reverse_detail_head_ds');
var record = headers_ds.getAt(0);
//校验跨月核销是否勾选跨月核销标志
if ('${/model/extend_month/record/@check_flag}' =='Y'){
if(record.get('extend_month_flag')!='Y'){
Leaf.showMessage('${l:HLS.PROMPT}', '跨月核销单据必须勾选允许跨月反冲!');
return false;
}
}
Leaf.request({
url: $('csh514_save_invoice_flag_id').getUrl(),
para: {
transaction_wfl_id:record.get('transaction_wfl_id'),
check_flag :record.get('ignore_invoice_check_flag')
check_flag :record.get('ignore_invoice_check_flag'),
extend_month_flag:record.get('extend_month_flag')
},
success: function () {
},
......@@ -89,6 +99,7 @@
<a:field name="description" readOnly="true"/>
<a:field name="note" readOnly="true"/>
<a:field name="ignore_invoice_check_flag"/>
<a:field name="extend_month_flag"/>
</a:fields>
</a:dataSet>
<a:dataSet id="csh_transaction_receipt_write_off_reverse_detail_result_ds" autoQuery="true" fetchAll="true"
......@@ -123,7 +134,8 @@
<a:textField name="description" bindTarget="csh_transaction_receipt_write_off_reverse_detail_head_ds"
prompt="HLS.NOTE" width="300"/>
<a:checkBox name="ignore_invoice_check_flag" bindTarget="csh_transaction_receipt_write_off_reverse_detail_head_ds" prompt="是否跳过合同开票校验"/>
</a:hBox>
<a:checkBox id="extend_month_id" name="extend_month_flag" bindTarget="csh_transaction_receipt_write_off_reverse_detail_head_ds" prompt="是否允许跨月反冲"/>
</a:hBox>
<a:hBox>
<a:textArea name="note" bindTarget="csh_transaction_receipt_write_off_reverse_detail_head_ds"
prompt="备注" width="600"/>
......@@ -151,10 +163,14 @@
<script>
Leaf.onReady(init);
function init() {
debugger;
var headers_ds = $('csh_transaction_receipt_write_off_reverse_detail_head_ds');
if ('${/model/wolkflow_path/record/@current_seq}' != '10'){
headers_ds.getField('ignore_invoice_check_flag').setReadOnly(true);
}
if ('${/model/extend_month/record/@check_flag}' =='N'){
$('extend_month_id').hide();
}
}
</script>
......
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