Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
dcfe14a3
Commit
dcfe14a3
authored
Mar 28, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
27e20682
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
JXFP.java
.../taxtech/atms/vat/service/impl/report/functions/JXFP.java
+6
-6
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/JXFP.java
View file @
dcfe14a3
...
...
@@ -54,7 +54,7 @@ public class JXFP extends FunctionBase implements FreeRefFunction {
int
resultType
=
getIntParam
(
args
[
3
],
ec
);
int
period
=
getIntParam
(
args
[
4
],
ec
);
// 客户情况只计算增值税专票
String
invoiceType
=
"004"
;
//
String invoiceType = "004";
String
formulaExpression
=
"JXFP("
+
certificationPeriod
+
","
+
invoiceTypeParam
+
","
+
authenticationType
+
","
+
resultType
+
","
+
period
+
")"
;
...
...
@@ -82,22 +82,22 @@ public class JXFP extends FunctionBase implements FreeRefFunction {
List
<
CertifiedInvoicesList
>
inputInvoices
;
if
(
authenticationType
==
1
&&
formulaContext
.
getIsYear
())
{
inputInvoices
=
getInvoice
(
null
,
invoiceType
,
inputInvoices
=
getInvoice
(
null
,
invoiceType
Param
,
Constant
.
InputInvoiceCertificationResult
.
CheckPass
,
Constant
.
InputInvoiceCertificationResult
.
ScanPass
,
null
);
}
else
if
(
authenticationType
==
1
)
{
inputInvoices
=
getInvoice
(
period
,
invoiceType
,
inputInvoices
=
getInvoice
(
period
,
invoiceType
Param
,
Constant
.
InputInvoiceCertificationResult
.
CheckPass
,
Constant
.
InputInvoiceCertificationResult
.
ScanPass
,
null
);
}
// 认证未通过与未认证暂认为是同一个意思
else
if
(
authenticationType
==
2
&&
formulaContext
.
getIsYear
())
{
inputInvoices
=
getInvoice
(
null
,
invoiceType
,
inputInvoices
=
getInvoice
(
null
,
invoiceType
Param
,
null
,
null
,
Constant
.
InputInvoiceCertificationResult
.
NotPass
);
}
// 认证未通过与未认证暂认为是同一个意思
else
if
(
authenticationType
==
0
||
authenticationType
==
2
)
{
inputInvoices
=
getInvoice
(
period
,
invoiceType
,
null
,
inputInvoices
=
getInvoice
(
period
,
invoiceType
Param
,
null
,
null
,
Constant
.
InputInvoiceCertificationResult
.
NotPass
);
}
else
{
saveFormulaBlock
(
period
,
ec
,
formulaExpression
,
new
BigDecimal
(
"0.0"
),
0L
,
formulaContext
.
getProjectId
());
...
...
@@ -195,7 +195,7 @@ public class JXFP extends FunctionBase implements FreeRefFunction {
return
strtodate
;
}
public
List
<
CertifiedInvoicesList
>
getInvoice
(
Integer
period
,
String
invoiceType
,
String
checkPass
,
String
scanPass
,
String
notPass
)
{
public
List
<
CertifiedInvoicesList
>
getInvoice
(
Integer
period
,
Integer
invoiceType
,
String
checkPass
,
String
scanPass
,
String
notPass
)
{
CertifiedInvoicesListExample
example
=
new
CertifiedInvoicesListExample
();
CertifiedInvoicesListExample
.
Criteria
criteria
=
example
.
createCriteria
();
...
...
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