Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
5bd844b6
Commit
5bd844b6
authored
Mar 23, 2023
by
王炜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增值税台账-季度
parent
518e4a52
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1912 additions
and
1 deletion
+1912
-1
REGISTER_RPT556.sql
src/main/database/Register_function/REGISTER_RPT556.sql
+37
-0
config.properties
src/main/resources/profiles/dev/config.properties
+1
-1
con_je_vat_current_quarter_query.lwm
...F/classes/rpt/RPT556/con_je_vat_current_quarter_query.lwm
+801
-0
con_je_vat_quarter_query.lwm
...p/WEB-INF/classes/rpt/RPT556/con_je_vat_quarter_query.lwm
+891
-0
con_je_vat_total_query_quarter.lwm
...INF/classes/rpt/RPT556/con_je_vat_total_query_quarter.lwm
+74
-0
con_je_vat_quarter_query.lview
.../webapp/modules/rpt/RPT556/con_je_vat_quarter_query.lview
+108
-0
No files found.
src/main/database/Register_function/REGISTER_RPT556.sql
0 → 100644
View file @
5bd844b6
WHENEVER
SQLERROR
EXIT
FAILURE
ROLLBACK
;
WHENEVER
OSERROR
EXIT
FAILURE
ROLLBACK
;
spool
REGISTER_CON_ET001
.
log
set
feedback
off
set
define
off
begin
--页面注册
sys_function_assign_pkg
.
service_load
(
'modules/rpt/RPT556/con_je_vat_quarter_query.lview'
,
'增值税台账(季度维度)'
,
1
,
1
,
0
);
--功能定义
SYS_LOAD_SYS_FUNCTION_PKG
.
SYS_FUNCTION_LOAD
(
'RPT556'
,
'增值税台账(季度维度)'
,
'增值税台账(季度维度)'
,
'100'
,
''
,
''
,
'modules/rpt/RPT556/con_je_vat_quarter_query.lview'
,
'ZHS'
,
-
1
);
SYS_LOAD_SYS_FUNCTION_PKG
.
SYS_FUNCTION_LOAD
(
'RPT556'
,
'增值税台账(季度维度)'
,
'增值税台账(季度维度)'
,
'100'
,
''
,
''
,
'modules/rpt/RPT556/con_je_vat_quarter_query.lview'
,
'US'
,
-
1
);
--分配页面
sys_function_assign_pkg
.
func_service_load
(
'RPT556'
,
'modules/rpt/RPT556/con_je_vat_quarter_query.lview'
);
--分配bm
sys_function_assign_pkg
.
func_bm_load
(
'RPT556'
,
'rpt.RPT556.con_je_vat_current_quarter_query'
);
sys_function_assign_pkg
.
func_bm_load
(
'RPT556'
,
'rpt.RPT556.con_je_vat_quarter_query'
);
sys_function_assign_pkg
.
func_bm_load
(
'RPT556'
,
'rpt.RPT556.con_je_vat_total_query_quarter'
);
--分配菜单
--sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'CON_CHANGE_REQ',p_function_code=>'CON_ET001',p_enabled_flag=>'Y',P_USER_ID=>-1);
end
;
/
commit
;
set
feedback
on
set
define
on
spool
off
exit
src/main/resources/profiles/dev/config.properties
View file @
5bd844b6
...
...
@@ -19,7 +19,7 @@ redis.db=10
db.type
=
oracle
db.driverClassName
=
oracle.jdbc.driver.OracleDriver
db.url
=
jdbc:oracle:thin:@10.200.17.
70:1521/HLS.orcl
db.url
=
jdbc:oracle:thin:@10.200.17.
180:1521/HLCMTEST
db.username
=
hl_cm_dev
db.password
=
hl_cm_dev
db.maxPoolSize
=
100
...
...
src/main/webapp/WEB-INF/classes/rpt/RPT556/con_je_vat_current_quarter_query.lwm
0 → 100644
View file @
5bd844b6
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/classes/rpt/RPT556/con_je_vat_quarter_query.lwm
0 → 100644
View file @
5bd844b6
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/classes/rpt/RPT556/con_je_vat_total_query_quarter.lwm
0 → 100644
View file @
5bd844b6
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: wangwei
$Date: 2023-3-16 下午2:20:47
$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 * from (
SELECT t.contract_id,
t.invoice_hd_id,
t.invoice_line_id,
(SELECT v.code_value_name
FROM sys_code_values_v v
WHERE v.code = 'ACR510_INVOICE_KIND'
AND v.code_value = t.invoice_kind)invoice_kind_n,
t.cashflow_id,
t.tax_apply_month invoice_month,
t.invoice_date,
t.invoice_number,
t.invoice_tax_amount total_amount,
t.apply_flag for_invoice_flag,
t.tenant_name bp_name,
t.contract_number,
t.acr_tax_amount return_tax_amount,
t.journal_tax_amount amount_cr,
t.journal_month je_month,
t.journal_date je_date,
t.journal_num,
t.times,
t.due_date,
t.due_amount,
t.principal,
t.interest,
t.tax_amount vat_due_amount,
t.created_by,
t.creation_date,
t.last_updated_by,
t.last_update_date,
t.tax_type_rate
FROM vat_account_tmp t
WHERE floor(t.session_id/10)=${/session/@session_id}
) t1
#WHERE_CLAUSE#
--order by invoice_hd_id,due_date ASC,invoice_line_id asc
order by invoice_hd_id, invoice_number asc, due_date ASC
]]>
</bm:query-sql>
</bm:operation>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
BEGIN
hl_cm_vat_report_pkg.vat_quarter_data_process(p_start_period =>
${@start_period},
p_end_period =>${@end_period},
p_session_id =>${/session/@session_id},
p_user_id =>${/session/@user_id});
END;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
<bm:data-filters>
<!-- <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=
"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))"
/>
</bm:query-fields>
</bm:model>
src/main/webapp/modules/rpt/RPT556/con_je_vat_quarter_query.lview
0 → 100644
View file @
5bd844b6
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: wangwei
$Date: 2023-3-16 下午2:20:47
$Revision: 1.0
$Purpose:
-->
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
customizationEnabled=
"true"
dynamiccreateenabled=
"true"
>
<a:view>
<a:link
id=
"con_get_layout_code_link_id"
model=
"cont.CON500.con_contract_get_layout_code"
modelaction=
"update"
/>
<a:link
id=
"process_vat_account_data_link"
model=
"rpt.RPT556.con_je_vat_total_query_quarter"
modelaction=
"update"
/>
<a:link
id=
"get_period_quarter_period_link_id"
model=
"rpt.RPT556.con_je_vat_quarter_query"
modelaction=
"execute"
></a:link>
<script
type=
"text/javascript"
>
<![CDATA[
//查询数据
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
var form_ds_id = '${/parameter/@layout_code}_F_QUERY__ds';
var base_period=$(form_ds_id).getAt(0).get('base_period');
if (typeof(base_period) == 'undefined' && Ext.isEmpty(base_period)) {
Leaf.showMessage('${l:HLS.PROMPT}', '请先选择基准期间!');
return;
}
debugger;
var start_period,end_period;
Leaf.request({
url: $('get_period_quarter_period_link_id').getUrl(),
para: {
base_period: $(form_ds_id).getAt(0).get('base_period')
},
success: function (res) {
start_period=res.result.start_period;
end_period=res.result.end_period;
},
failure: function () {
//Leaf.Masker.unmask(detail_mask);
},
error: function () {
// Leaf.Masker.unmask(detail_mask);
},
sync: true,
scope: this
});
//alert(start_period);
//alert(end_period);
var grid_ds_id_before = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BEFORE_RESULT', 'con_contract');
var grid_ds_id_before_6 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BEFORE_RESULT_6', 'con_contract');
var grid_ds_id_current = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_CURRENT_RESULT', 'con_contract');
var grid_ds_id_current_6 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_CURRENT_RESULT_6', 'con_contract');
var grid_ds_id_total = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_SUM_RESULT', 'con_contract');
var grid_vat_6_ds_id_total = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_SUM_RESULT_6', 'con_contract');
var detail_mask = Ext.getBody();
Leaf.Masker.mask(detail_mask, '正在保存中。。。');
Leaf.request({
url: $('process_vat_account_data_link').getUrl(),
para: {
start_period: start_period,
end_period:end_period
},
success: function () {
//前期未开票
$(grid_ds_id_before).setQueryUrl('${/request/@context_path}/autocrud/rpt.RPT556.con_je_vat_quarter_query/query?vat_6_flag=N');
$(grid_ds_id_before_6).setQueryUrl('${/request/@context_path}/autocrud/rpt.RPT556.con_je_vat_quarter_query/query?vat_6_flag=Y');
$(grid_ds_id_before).setQueryParameter('base_period',start_period);
$(grid_ds_id_before_6).setQueryParameter('base_period',start_period);
$(grid_ds_id_before).query();
$(grid_ds_id_before_6).query();
//当期未开票
$(grid_ds_id_current).setQueryUrl('${/request/@context_path}/autocrud/rpt.RPT556.con_je_vat_current_quarter_query/query?vat_6_flag=N');
$(grid_ds_id_current_6).setQueryUrl('${/request/@context_path}/autocrud/rpt.RPT556.con_je_vat_current_quarter_query/query?vat_6_flag=Y');
$(grid_ds_id_current).setQueryParameter('start_period',start_period);
$(grid_ds_id_current).setQueryParameter('end_period',end_period);
$(grid_ds_id_current_6).setQueryParameter('start_period',start_period);
$(grid_ds_id_current_6).setQueryParameter('end_period',end_period);
$(grid_ds_id_current).query();
$(grid_ds_id_current_6).query();
//已开票
$(grid_ds_id_total).setQueryUrl('${/request/@context_path}/autocrud/rpt.RPT556.con_je_vat_total_query_quarter/query?vat_6_flag=N');
$(grid_vat_6_ds_id_total).setQueryUrl('${/request/@context_path}/autocrud/rpt.RPT556.con_je_vat_total_query_quarter/query?vat_6_flag=Y');
$(grid_ds_id_total).setQueryDataSet($(form_ds_id));
$(grid_ds_id_total).setQueryParameter('vat_6_flag','N');
$(grid_vat_6_ds_id_total).setQueryDataSet($(form_ds_id));
$(grid_vat_6_ds_id_total).setQueryParameter('vat_6_flag','Y');
$(grid_ds_id_total).query();
$(grid_vat_6_ds_id_total).query();
Leaf.Masker.unmask(detail_mask);
},
failure: function () {
Leaf.Masker.unmask(detail_mask);
},
error: function () {
Leaf.Masker.unmask(detail_mask);
},
scope: this
});
};
]]>
</script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
</a:view>
</a:screen>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment