Commit 94b96562 authored by 18083's avatar 18083

经租上线代码同步更新

parent b3001985
......@@ -180,6 +180,6 @@
<bm:data-filter name="query" expression="(t1.returned_flag = 'NOT')"/>
<bm:data-filter name="query" expression="(t1.write_off_flag = 'NOT')"/>
<bm:data-filter name="query" expression="(t1.confirmed_flag in ('ACCAUDITED','APPROVED','WF_REJECTED'))"/>
<bm:data-filter name="query" expression="((t1.transaction_type = 'DEPOSIT' and t1.ref_contract_id is null) or (t1.collection_classes = 'REFUND' and t1.ref_contract_id is null and t1.source_csh_trx_id is null ) or (t1.transaction_type in ('ADVANCE_RECEIPT','RECEIPT') and nvl(t1.collection_classes,'NON') != 'REFUND'))"/>
<bm:data-filter name="query" expression="((t1.transaction_type = 'DEPOSIT' and t1.ref_contract_id is null) or (t1.collection_classes = 'REFUND' and t1.ref_contract_id is null and t1.source_csh_trx_id is null ) or (t1.transaction_type in ('RECEIPT') and nvl(t1.collection_classes,'NON') != 'REFUND'))"/>
</bm:data-filters>
</bm:model>
\ No newline at end of file
......@@ -61,7 +61,7 @@
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
hls_monthend_new_pkg.csh_check_acr(p_user_id => ${/session/@user_id},p_err_msg=> ${@p_err_msg});
hls_monthend_new_pkg.csh_check_acr(p_csh_date => ${@csh_date},p_user_id => ${/session/@user_id},p_err_msg=> ${@p_err_msg});
end;
]]></bm:update-sql>
<bm:parameters>
......
......@@ -18,6 +18,8 @@
'NO',
(Select decode(t.role_code,
'0009',
'NO',
'0038',
'NO',
'0014',
'YES',
......
......@@ -163,10 +163,10 @@ SELECT to_char(add_months(trunc(t1.journal_date, 'Q'), 2), 'yyyymm') tax_month,
and h.sbo_num is not null
and h.total_amount_dr != 0
and ga.account_id = l.account_id
and ga.account_code in ('2221001020', '2221001023', '2221001024')
and ga.account_code in ('2221001020', '2221001023', '2221001024','2221001026')
and h.reversed_flag = 'N' and h.post_gl_status = 'Y'
and h.internal_period_num <= to_number(${@base_period})
AND (h.je_transaction_code = 'HL_SALES_TAX_ACT_NEW')
AND (h.je_transaction_code in ('HL_SALES_TAX_ACT_NEW','FIN_INCOME_RECOGNITION_OP'))
and ((trunc(h.journal_date) <=
trunc(to_date('2020-01-31', 'yyyy-mm-dd')) and
h.description = 'MANUAL_IMPORT') or
......@@ -240,7 +240,7 @@ SELECT to_char(add_months(trunc(t1.journal_date, 'Q'), 2), 'yyyymm') tax_month,
(select 1
from gld_accounts g
where g.account_id = d.account_id
and g.account_code in ('1122000001', '1122000002'))
and g.account_code in ('1122000001', '1122000002','1122000005'))
and rownum = 1)
end due_amount,
null principal,
......@@ -283,7 +283,7 @@ SELECT to_char(add_months(trunc(t1.journal_date, 'Q'), 2), 'yyyymm') tax_month,
(select 1
from gld_accounts g
where g.account_id = d.account_id
and g.account_code in ('1122000001', '1122000002'))
and g.account_code in ('1122000001', '1122000002','1122000005'))
and rownum = 1)
end interest,
round(l.amount_cr,
......@@ -309,7 +309,7 @@ SELECT to_char(add_months(trunc(t1.journal_date, 'Q'), 2), 'yyyymm') tax_month,
and h.sbo_num is not null
and h.total_amount_dr != 0
and ga.account_id = l.account_id
and ga.account_code in ('2221001020', '2221001023', '2221001024')
and ga.account_code in ('2221001020', '2221001023', '2221001024','2221001026')
and h.reversed_flag = 'N' and h.post_gl_status = 'Y'
and h.internal_period_num <= to_number(${@base_period})
And (h.je_transaction_code = 'HL_CSH_CONSOLIDATION_DALAY' or
......@@ -735,7 +735,7 @@ SELECT h.period_year,
--and h.total_amount_dr != 0
and ga.account_id = l.account_id
--and l.line_description like '%留购金%'
and ga.account_code in ('2221001020', '2221001023', '2221001024')
and ga.account_code in ('2221001020', '2221001023', '2221001024','2221001026')
and h.reversed_flag = 'N' and h.post_gl_status = 'Y'
and h.internal_period_num <= to_number(${@base_period})
And exists
......@@ -1030,7 +1030,7 @@ select tax_month,
</bm:operation>
</bm:operations>
<bm:data-filters>
<!-- <bm:data-filter enforceOperations="query" expression="(t1.amount_tax > 0 or t1.fixed_data_flag='Y')"/>-->
<!-- <bm:data-filter enforceOperations="query" expression="(t1.amount_tax > 0 or t1.fixed_data_flag='Y')"/>-->
<bm:data-filter enforceOperations="query" expression="(exists(select 1 from con_contract cc where cc.contract_number=t1.contract_number and cc.contract_status!='CANCEL' and cc.data_class='NORMAL') or t1.fixed_data_flag='Y')"/>
</bm:data-filters>
<bm:query-fields>
......
......@@ -13,6 +13,7 @@
SELECT t.contract_id,
t.invoice_hd_id,
t.invoice_line_id,
t.invoice_kind,
(SELECT v.code_value_name
FROM sys_code_values_v v
WHERE v.code = 'ACR510_INVOICE_KIND'
......@@ -60,12 +61,12 @@
</bm:operation>
</bm:operations>
<bm:data-filters>
<!-- <bm:data-filter enforceOperations="query" expression="to_char(t1.invoice_date,'yyyymm') = ${@base_period}"/>-->
<!-- <bm:data-filter enforceOperations="query" expression="to_char(t1.invoice_date,'yyyymm') = ${@base_period}"/>-->
</bm:data-filters>
<bm:query-fields>
<bm:query-field name="contract_number" queryExpression="t1.contract_number = ${@contract_number}"/>
<bm:query-field name="bp_name" queryExpression="t1.bp_name = ${@bp_name}"/>
<!-- <bm:query-field name="journal_date" queryExpression="to_char(t1.journal_date,'yyyy-mm-dd') = ${@journal_date}"/>-->
<!-- <bm:query-field name="journal_date" queryExpression="to_char(t1.journal_date,'yyyy-mm-dd') = ${@journal_date}"/>-->
<bm:query-field name="invoice_date" queryExpression="to_char(t1.invoice_date,'yyyy-mm-dd') = ${@invoice_date}"/>
<bm:query-field name="invoice_kind" queryExpression="t1.invoice_kind = ${@invoice_kind}"/>
<bm:query-field name="vat_6_flag" queryExpression="((${@vat_6_flag}='Y' and t1.tax_type_rate=0.06) or(${@vat_6_flag}!='Y' and t1.tax_type_rate!=0.06))"/>
......
......@@ -271,11 +271,11 @@ SELECT h.period_year,
and h.sbo_num is not null
and h.total_amount_dr!=0
and ga.account_id=l.account_id
and ga.account_code in('2221001020','2221001023','2221001024')
and ga.account_code in('2221001020','2221001023','2221001024','2221001026')
and h.reversed_flag='N'
and h.internal_period_num<=to_number(${@end_period})
and h.internal_period_num>=to_number(${@start_period})
And (h.je_transaction_code ='HL_SALES_TAX_ACT_NEW' )
And (h.je_transaction_code in ('HL_SALES_TAX_ACT_NEW','FIN_INCOME_RECOGNITION_OP') )
and( (trunc(h.journal_date)<=trunc(to_date('2020-01-31','yyyy-mm-dd')) and h.description='MANUAL_IMPORT')or(trunc(h.journal_date)>trunc(to_date('2020-01-31','yyyy-mm-dd'))))
union
SELECT h.period_year,
......@@ -336,7 +336,7 @@ SELECT h.period_year,
(select 1
from gld_accounts g
where g.account_id = d.account_id
and g.account_code in ('1122000001', '1122000002'))
and g.account_code in ('1122000001', '1122000002','1122000005'))
and rownum = 1)
end due_amount,
null principal,
......@@ -365,7 +365,7 @@ SELECT h.period_year,
(select 1
from gld_accounts g
where g.account_id = d.account_id
and g.account_code in ('1122000001', '1122000002'))
and g.account_code in ('1122000001', '1122000002','1122000005'))
and rownum = 1)
end interest,
round(l.amount_cr -
......@@ -392,7 +392,7 @@ SELECT h.period_year,
and h.sbo_num is not null
and h.total_amount_dr != 0
and ga.account_id = l.account_id
and ga.account_code in ('2221001020', '2221001023','2221001024')
and ga.account_code in ('2221001020', '2221001023','2221001024','2221001026')
and h.reversed_flag = 'N'
and h.internal_period_num<=to_number(${@end_period})
and h.internal_period_num>=to_number(${@start_period})
......
......@@ -279,10 +279,10 @@ SELECT h.period_year,
and h.sbo_num is not null
and h.total_amount_dr!=0
and ga.account_id=l.account_id
and ga.account_code in('2221001020','2221001023','2221001024')
and ga.account_code in('2221001020','2221001023','2221001024','2221001026')
and h.reversed_flag='N'
and h.internal_period_num<to_number(${@start_period})
AND (h.je_transaction_code= 'HL_SALES_TAX_ACT_NEW')
AND (h.je_transaction_code in ('HL_SALES_TAX_ACT_NEW','FIN_INCOME_RECOGNITION_OP') )
and( (trunc(h.journal_date)<=trunc(to_date('2020-01-31','yyyy-mm-dd')) and h.description='MANUAL_IMPORT')or(trunc(h.journal_date)>trunc(to_date('2020-01-31','yyyy-mm-dd'))))
AND ( not EXISTS (SELECT 1
FROM acr_invoice_hd hi, acr_invoice_ln li
......@@ -363,7 +363,7 @@ SELECT h.period_year,
(select 1
from gld_accounts g
where g.account_id = d.account_id
and g.account_code in ('1122000001', '1122000002'))
and g.account_code in ('1122000001', '1122000002','1122000005'))
and rownum = 1)
end due_amount,
null principal,
......@@ -392,7 +392,7 @@ SELECT h.period_year,
(select 1
from gld_accounts g
where g.account_id = d.account_id
and g.account_code in ('1122000001', '1122000002'))
and g.account_code in ('1122000001', '1122000002','1122000005'))
and rownum = 1)
end interest,
round(l.amount_cr -
......@@ -424,7 +424,7 @@ SELECT h.period_year,
and h.sbo_num is not null
and h.total_amount_dr != 0
and ga.account_id = l.account_id
and ga.account_code in ('2221001020', '2221001023','2221001024')
and ga.account_code in ('2221001020', '2221001023','2221001024','2221001026')
and h.reversed_flag = 'N'
and h.internal_period_num < to_number(${@start_period})
And (h.je_transaction_code =
......
......@@ -13,6 +13,7 @@
SELECT t.contract_id,
t.invoice_hd_id,
t.invoice_line_id,
t.invoice_kind,
(SELECT v.code_value_name
FROM sys_code_values_v v
WHERE v.code = 'ACR510_INVOICE_KIND'
......
......@@ -11,7 +11,9 @@
From prj_project pp, hls_bp_master hm
Where pp.invoice_agent_id = hm.bp_id
And pp.wfl_instance_id = t1.instance_id),
'N') as is_constru_unit
'N') as is_constru_unit,
(select pp.division from prj_project pp where pp.wfl_instance_id=t1.instance_id) as division,
(select cc.division from csh_payment_req_hd crh,con_contract cc where crh.contract_id=cc.contract_id and crh.wfl_instance_id=t1.instance_id) payment_division
From zj_wfl_instance_node_rcpt_ht t1
#WHERE_CLAUSE#
]]></bm:query-sql>
......
......@@ -10,7 +10,9 @@
From prj_project pp, hls_bp_master hm
Where pp.invoice_agent_id = hm.bp_id
And pp.wfl_instance_id = t1.instance_id),
'N') as is_constru_unit
'N') as is_constru_unit,
(select pp.division from prj_project pp where pp.wfl_instance_id=t1.instance_id) as division,
(select cc.division from csh_payment_req_hd crh,con_contract cc where crh.contract_id=cc.contract_id and crh.wfl_instance_id=t1.instance_id) payment_division
From zj_wfl_workflow_instance t1
#WHERE_CLAUSE#
]]></bm:query-sql>
......
......@@ -11,7 +11,9 @@
From prj_project pp, hls_bp_master hm
Where pp.invoice_agent_id = hm.bp_id
And pp.wfl_instance_id = t1.instance_id),
'N') as is_constru_unit
'N') as is_constru_unit,
(select pp.division from prj_project pp where pp.wfl_instance_id=t1.instance_id) division,
(select cc.division from csh_payment_req_hd crh,con_contract cc where crh.contract_id=cc.contract_id and crh.wfl_instance_id=t1.instance_id) payment_division
From zj_wfl_instance_node_recipient t1
#WHERE_CLAUSE#
]]></bm:query-sql>
......
......@@ -5,7 +5,13 @@
<bm:query-sql><![CDATA[
Select t1.*,replace(t1.service_url,
'modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview',
'modules/prj/PRJ501N/prj_project_maintain_constru_wfl.lview') as service_url_constru
'modules/prj/PRJ501N/prj_project_maintain_constru_wfl.lview') as service_url_constru,
replace(t1.service_url,
'modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview',
'modules/prj/PRJ501N/prj_project_maintain_operat_wfl.lview') as service_url_operat,
replace(t1.service_url,
'modules/csh/CSH501/csh_payment_req.lview',
'modules/csh/CSH501/csh_payment_op_req.lview') as service_url_operat_payment
From (select zj_wfl_core_pkg.get_node_service_url(tt.record_id,
${/parameter/@url_type},
${/session/@user_id}) as service_url,tt.*
......
......@@ -5,7 +5,13 @@
<bm:query-sql><![CDATA[
Select t1.*,replace(t1.service_url,
'modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview',
'modules/prj/PRJ501N/prj_project_maintain_constru_wfl.lview') as service_url_constru
'modules/prj/PRJ501N/prj_project_maintain_constru_wfl.lview') as service_url_constru,
replace(t1.service_url,
'modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview',
'modules/prj/PRJ501N/prj_project_maintain_operat_wfl.lview') as service_url_operat,
replace(t1.service_url,
'modules/csh/CSH501/csh_payment_req.lview',
'modules/csh/CSH501/csh_payment_op_req.lview') as service_url_operat_payment
From (select zj_wfl_core_pkg.get_node_service_url(tt.record_id,
${/parameter/@url_type},
${/session/@user_id}) as service_url,tt.*
......
......@@ -5,7 +5,15 @@
<bm:query-sql><![CDATA[
Select t1.*,replace(t1.service_url,
'modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview',
'modules/prj/PRJ501N/prj_project_maintain_constru_wfl.lview') as service_url_constru
'modules/prj/PRJ501N/prj_project_maintain_constru_wfl.lview') as service_url_constru,
replace(t1.service_url,
'modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview',
'modules/prj/PRJ501N/prj_project_maintain_operat_wfl.lview') as service_url_operat,
replace(t1.service_url,
'modules/csh/CSH501/csh_payment_req.lview',
'modules/csh/CSH501/csh_payment_op_req.lview') as service_url_operat_payment,
replace(t1.service_url,
'modules/prj/PRJ2000/purchase_order_deteail.lview') as service_url_purchase
From (select zj_wfl_core_pkg.get_wfl_service_url(tt.instance_id,
${/session/@user_id}) as service_url,tt.*
from zj_wfl_workflow_instance tt) t1
......
var override_queryfields = [
{
{
field : 'project_id',
queryoperator : "="
},
},
//{
// field : 'project_name',
// queryoperator : "like"
//},
{
{
name : 'create_date_from',
queryexpression : "t1.create_date between to_date(${@create_date_from},'yyyy-mm-dd') and nvl(to_date(${@create_date_to},'yyyy-mm-dd'),t1.create_date)"
},
{
},
{
name : 'create_date_to',
queryexpression : "t1.create_date between nvl(to_date(${@create_date_from},'yyyy-mm-dd'),t1.create_date) and to_date(${@create_date_to},'yyyy-mm-dd')"
},
{
},
{
name : 'bp_id',
queryexpression : "exists (select 1 from prj_project_bp b where b.project_id=t1.project_id and b.bp_id=${@bp_id})"
},
},
{
name : 'bp_name',
queryexpression : "exists (select 1 from prj_project_bp_v b where b.project_id=t1.project_id and b.bp_name like '%'||${@bp_name}||'%')"
},
//{
// field : 'employee_id',
// queryoperator : "="
......@@ -60,12 +63,22 @@ var override_queryfields = [
// field : 'search_term_2',
// queryoperator : "="
//},
{
{
name:'project_status',
queryexpression : "t1.project_status in ('NEW','APPROVING','APPROVED_RETURN','REJECT','APPROVED','CONTRACT_CREATED','CLOSED')"
}
}
];
var add_datafilters = [{
name: 'document_type',
expression: "t1.document_type not in('PUR_ORDER') "
},
{
name: 'business_type',
expression: "t1.business_type not in('OTHERS') "
}
];
add_datafilter();
override();
......@@ -900,7 +900,9 @@
$L.Masker.mask(Ext.getBody(), '正在执行......');
$L.request({
url: $('csh_check_acr_link').getUrl(),
para: {},
para: {
csh_date: record.get('csh_date')
},
success: function (args) {
$L.Masker.unmask(Ext.getBody());
if (args.result.p_err_msg) {
......
......@@ -23,6 +23,23 @@
<a:case value="Y">
<a:screen-include screen="${/model/workflow_service_record/record/@service_url_constru}"/>
</a:case>
<a:case value="N">
<a:switch test="/model/node_service_record/record/@division">
<a:case value="95">
<a:screen-include screen="${/model/workflow_service_record/record/@service_url_operat}"/>
</a:case>
<a:case value="*">
<a:screen-include screen="${/model/workflow_service_record/record/@service_url}"/>
</a:case>
</a:switch>
</a:case>
</a:switch>
</a:case>
<a:case value="DCFL_CSH_PAYMENT_REQ">
<a:switch test="/model/node_service_record/record/@payment_division">
<a:case value="95">
<a:screen-include screen="${/model/workflow_service_record/record/@service_url_operat_payment}"/>
</a:case>
<a:case value="*">
<a:screen-include screen="${/model/workflow_service_record/record/@service_url}"/>
</a:case>
......
......@@ -23,6 +23,23 @@
<a:case value="Y">
<a:screen-include screen="${/model/submiter_ht_wfl_service/record/@service_url_constru}"/>
</a:case>
<a:case value="N">
<a:switch test="/model/node_service_info/record/@division">
<a:case value="95">
<a:screen-include screen="${/model/submiter_ht_wfl_service/record/@service_url_operat}"/>
</a:case>
<a:case value="*">
<a:screen-include screen="${/model/submiter_ht_wfl_service/record/@service_url}"/>
</a:case>
</a:switch>
</a:case>
</a:switch>
</a:case>
<a:case value="DCFL_CSH_PAYMENT_REQ">
<a:switch test="/model/node_service_info/record/@payment_division">
<a:case value="95">
<a:screen-include screen="${/model/submiter_ht_wfl_service/record/@service_url_operat_payment}"/>
</a:case>
<a:case value="*">
<a:screen-include screen="${/model/submiter_ht_wfl_service/record/@service_url}"/>
</a:case>
......@@ -31,6 +48,9 @@
<a:case value="*">
<a:screen-include screen="${/model/submiter_ht_wfl_service/record/@service_url}"/>
</a:case>
<a:case value="OL_PROCURE_WFL">
<a:screen-include screen="${/model/submiter_ht_wfl_service/record/@service_url_purchase}"/>
</a:case>
</a:switch>
</a:case>
</a:switch>
......
......@@ -45,6 +45,23 @@
<a:switch test="/model/node_service_info/record/@is_constru_unit">
<a:case value="Y">
<a:screen-include screen="${/model/approver_ht_node_service/record/@service_url_constru}"/>
</a:case>
<a:case value="N">
<a:switch test="/model/node_service_info/record/@division">
<a:case value="95">
<a:screen-include screen="${/model/approver_ht_node_service/record/@service_url_constru}"/>
</a:case>
<a:case value="*">
<a:screen-include screen="${/model/approver_ht_node_service/record/@service_url}"/>
</a:case>
</a:switch>
</a:case>
</a:switch>
</a:case>
<a:case value="DCFL_CSH_PAYMENT_REQ">
<a:switch test="/model/node_service_info/record/@payment_division">
<a:case value="95">
<a:screen-include screen="${/model/approver_ht_node_service/record/@service_url_operat_payment}"/>
</a:case>
<a:case value="*">
<a:screen-include screen="${/model/approver_ht_node_service/record/@service_url}"/>
......
......@@ -343,6 +343,23 @@
<a:case value="Y">
<a:screen-include screen="${/model/node_service_record/record/@service_url_constru}&amp;winid=zj_wfl_approve_win&amp;instance_id=${/parameter/@instance_id}"/>
</a:case>
<a:case value="N">
<a:switch test="/model/node_info_record/record/@division">
<a:case value="95">
<a:screen-include screen="${/model/node_service_record/record/@service_url_operat}&amp;winid=zj_wfl_approve_win&amp;instance_id=${/parameter/@instance_id}"/>
</a:case>
<a:case value="*">
<a:screen-include screen="${/model/node_service_record/record/@service_url}&amp;winid=zj_wfl_approve_win&amp;instance_id=${/parameter/@instance_id}"/>
</a:case>
</a:switch>
</a:case>
</a:switch>
</a:case>
<a:case value="DCFL_CSH_PAYMENT_REQ">
<a:switch test="/model/node_info_record/record/@payment_division">
<a:case value="95">
<a:screen-include screen="${/model/node_service_record/record/@service_url_operat_payment}&amp;winid=zj_wfl_approve_win&amp;instance_id=${/parameter/@instance_id}"/>
</a:case>
<a:case value="*">
<a:screen-include screen="${/model/node_service_record/record/@service_url}&amp;winid=zj_wfl_approve_win&amp;instance_id=${/parameter/@instance_id}"/>
</a:case>
......
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