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
307cf0c7
Commit
307cf0c7
authored
Jun 30, 2023
by
lizhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增值税台账database
parent
303596c3
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
935 additions
and
18 deletions
+935
-18
con_je_vat_current_query.lwm
...p/WEB-INF/classes/rpt/RPT555/con_je_vat_current_query.lwm
+14
-9
con_je_vat_database_query.lwm
.../WEB-INF/classes/rpt/RPT555/con_je_vat_database_query.lwm
+898
-0
con_je_vat_query.lwm
...in/webapp/WEB-INF/classes/rpt/RPT555/con_je_vat_query.lwm
+14
-9
con_je_vat_total_query.lwm
...app/WEB-INF/classes/rpt/RPT555/con_je_vat_total_query.lwm
+2
-0
con_je_vat_query.lview
src/main/webapp/modules/rpt/RPT555/con_je_vat_query.lview
+7
-0
No files found.
src/main/webapp/WEB-INF/classes/rpt/RPT555/con_je_vat_current_query.lwm
View file @
307cf0c7
...
...
@@ -473,15 +473,18 @@ SELECT h.period_year,
and ah.invoice_kind in ('0', '2')
AND to_char(ah.invoice_date,'yyyymm')
<
= ${@base_period}
and ah.invoice_status = 'CONFIRM'),0) vat_due_amount,
(select
case when nvl(ccc.interest,0)!=0 then
round(ccc.vat_interest/ccc.interest,2)
when nvl(ccc.due_amount-ccc.vat_due_amount,0)!=0 then
round(ccc.vat_due_amount/(ccc.due_amount-ccc.vat_due_amount),2)
(select case
when nvl(ccc.interest, 0) != 0 and (ccc.interest -ccc.vat_interest) != 0 then
round(ccc.vat_interest / (ccc.interest -ccc.vat_interest), 2)
when nvl(ccc.due_amount - ccc.vat_due_amount, 0) != 0 then
round(ccc.vat_due_amount /
(ccc.due_amount - ccc.vat_due_amount),
2)
else
null
end
from con_contract_cashflow ccc where ccc.cashflow_id=l.cashflow_id) vat_rate,
from con_contract_cashflow ccc
where ccc.cashflow_id = l.cashflow_id) vat_rate,
h.je_transaction_code,
l.cashflow_id
FROM hls_journal_header h, hls_journal_detail l,gld_accounts ga
...
...
@@ -789,5 +792,7 @@ and hd.je_template_code in
<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=
"vat_6_flag"
queryExpression=
"((${@vat_6_flag}='Y' and t1.vat_rate=0.06) or (${@vat_6_flag}!='Y' and nvl(t1.vat_rate,0)!=0.06))"
/>
<bm:query-field
name=
"journal_date_f"
queryExpression=
"to_char(t1.journal_date,'yyyy-mm-dd') >= ${@journal_date_f}"
/>
<bm:query-field
name=
"journal_date_t"
queryExpression=
"to_char(t1.journal_date,'yyyy-mm-dd') <= ${@journal_date_t}"
/>
</bm:query-fields>
</bm:model>
src/main/webapp/WEB-INF/classes/rpt/RPT555/con_je_vat_database_query.lwm
0 → 100644
View file @
307cf0c7
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/classes/rpt/RPT555/con_je_vat_query.lwm
View file @
307cf0c7
...
...
@@ -512,15 +512,18 @@ SELECT h.period_year,
and ah.invoice_kind in ('0', '2')
AND to_char(ah.invoice_date,'yyyymm')
<
= ${@base_period}
and ah.invoice_status = 'CONFIRM'),0) vat_due_amount,
(select
case when nvl(ccc.interest,0)!=0 then
round(ccc.vat_interest/ccc.interest,2)
when nvl(ccc.due_amount-ccc.vat_due_amount,0)!=0 then
round(ccc.vat_due_amount/(ccc.due_amount-ccc.vat_due_amount),2)
(select case
when nvl(ccc.interest, 0) != 0 and (ccc.interest -ccc.vat_interest) != 0 then
round(ccc.vat_interest / (ccc.interest -ccc.vat_interest), 2)
when nvl(ccc.due_amount - ccc.vat_due_amount, 0) != 0 then
round(ccc.vat_due_amount /
(ccc.due_amount - ccc.vat_due_amount),
2)
else
null
end
from con_contract_cashflow ccc where ccc.cashflow_id=l.cashflow_id) vat_rate,
from con_contract_cashflow ccc
where ccc.cashflow_id = l.cashflow_id) vat_rate,
h.je_transaction_code,
l.cashflow_id,
'N' fixed_data_flag
...
...
@@ -874,5 +877,7 @@ and hd.je_template_code in
queryExpression=
"to_number(to_char(t1.journal_date,'yyyymm')) < to_number(${@base_period})"
/>
<bm:query-field
name=
"invoice_date"
queryExpression=
"to_char(t1.invoice_date,'yyyy-mm-dd') = ${@invoice_date}"
/>
<bm:query-field
name=
"vat_6_flag"
queryExpression=
"((${@vat_6_flag}='Y' and t1.vat_rate=0.06) or (${@vat_6_flag}!='Y' and nvl(t1.vat_rate,0)!=0.06))"
/>
<bm:query-field
name=
"journal_date_f"
queryExpression=
"to_char(t1.journal_date,'yyyy-mm-dd') >= ${@journal_date_f}"
/>
<bm:query-field
name=
"journal_date_t"
queryExpression=
"to_char(t1.journal_date,'yyyy-mm-dd') <= ${@journal_date_t}"
/>
</bm:query-fields>
</bm:model>
src/main/webapp/WEB-INF/classes/rpt/RPT555/con_je_vat_total_query.lwm
View file @
307cf0c7
...
...
@@ -69,5 +69,7 @@
<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-field
name=
"journal_date_f"
queryExpression=
"to_char(t1.je_date,'yyyy-mm-dd') >= ${@journal_date_f}"
/>
<bm:query-field
name=
"journal_date_t"
queryExpression=
"to_char(t1.je_date,'yyyy-mm-dd') <= ${@journal_date_t}"
/>
</bm:query-fields>
</bm:model>
src/main/webapp/modules/rpt/RPT555/con_je_vat_query.lview
View file @
307cf0c7
...
...
@@ -42,6 +42,12 @@
$(grid_ds_id_before_6).query();
$(grid_ds_id_current).query();
$(grid_ds_id_current_6).query();*/
//新增database tab页
var grid_ds_id_database = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_DATABASE_RESULT', 'con_contract');
$(grid_ds_id_database).setQueryDataSet($(form_ds_id));
$(grid_ds_id_database).setQueryUrl('${/request/@context_path}/autocrud/rpt.RPT555.con_je_vat_database_query/query');
Leaf.Masker.mask(detail_mask, '正在保存中。。。');
Leaf.request({
url: $('process_vat_account_data_link').getUrl(),
...
...
@@ -56,6 +62,7 @@
$(grid_ds_id_before_6).query();
$(grid_ds_id_current).query();
$(grid_ds_id_current_6).query();
$(grid_ds_id_database).query();
Leaf.Masker.unmask(detail_mask);
},
failure: function () {
...
...
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