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
4116029a
Commit
4116029a
authored
Nov 02, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xxfp bug
parent
d978f2c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
ReportGeneratorImpl.java
...wc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
+3
-3
FunctionBase.java
.../atms/vat/service/impl/report/functions/FunctionBase.java
+1
-1
XXFP.java
.../taxtech/atms/vat/service/impl/report/functions/XXFP.java
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
View file @
4116029a
...
...
@@ -534,9 +534,9 @@ public class ReportGeneratorImpl {
if
(
result
.
isPresent
())
{
CellCalcInfoDto
cellCalcInfoDto
=
new
CellCalcInfoDto
();
cellCalcInfoDto
.
setColumnIndex
(
Integer
.
parseInt
(
result
.
get
().
get
(
"columnIndex"
).
toString
()));
cellCalcInfoDto
.
setColumnName
(
result
.
get
().
get
(
"columnName"
).
toString
());
cellCalcInfoDto
.
setColumnName
(
result
.
get
().
get
(
"columnName"
)
==
null
?
""
:
result
.
get
().
get
(
"columnName"
)
.
toString
());
cellCalcInfoDto
.
setRowIndex
(
Integer
.
parseInt
(
result
.
get
().
get
(
"rowIndex"
).
toString
()));
cellCalcInfoDto
.
setRowName
(
result
.
get
().
get
(
"rowName"
).
toString
());
cellCalcInfoDto
.
setRowName
(
result
.
get
().
get
(
"rowName"
)
==
null
?
""
:
result
.
get
().
get
(
"rowName"
)
.
toString
());
cellCalcInfoDto
.
setFormula
(
convertListToString
(
y
.
stream
()
.
map
(
PeriodCellTemplateConfig:
:
getFormula
).
collect
(
Collectors
.
toList
())));
cellCalcInfoDto
.
setParsedFormula
(
convertListToString
(
y
.
stream
()
...
...
@@ -546,7 +546,7 @@ public class ReportGeneratorImpl {
cellCalcInfoDto
.
setReportTemplateId
(
Long
.
parseLong
(
result
.
get
().
get
(
"reportTemplateId"
).
toString
()));
cellCalcInfoDto
.
setDataType
(
Integer
.
parseInt
(
result
.
get
().
get
(
"dataType"
).
toString
()));
cellCalcInfoDto
.
setIsReadOnly
(
Boolean
.
valueOf
(
result
.
get
().
get
(
"isReadOnly"
).
toString
()));
cellCalcInfoDto
.
setComment
(
result
.
get
().
get
(
"comment"
).
toString
());
cellCalcInfoDto
.
setComment
(
result
.
get
().
get
(
"comment"
)
==
null
?
""
:
result
.
get
().
get
(
"comment"
)
.
toString
());
cellCalcInfoDto
.
setConfigList
(
y
.
stream
()
.
map
(
PeriodCellTemplateConfigExtendDto:
:
getPeriodCellTemplateConfig
)
.
collect
(
Collectors
.
toList
()));
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/FunctionBase.java
View file @
4116029a
...
...
@@ -170,7 +170,7 @@ public class FunctionBase {
periodFormulaBlock
.
setReportId
(
0L
);
periodFormulaBlock
.
setCellTemplateId
(
cellTemplateId
);
periodFormulaBlock
.
setFormulaExpression
(
formulaExpression
);
periodFormulaBlock
.
setData
(
val
.
toString
());
periodFormulaBlock
.
setData
(
val
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
toString
());
periodFormulaBlock
.
setDataSourceId
(
dataSourceId
);
periodFormulaBlock
.
setCreateBy
(
"Admin"
);
periodFormulaBlock
.
setCreateTime
(
creatime
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/XXFP.java
View file @
4116029a
...
...
@@ -48,7 +48,7 @@ public class XXFP extends FunctionBase implements FreeRefFunction {
int
period
=
getIntParam
(
args
[
3
],
ec
);
String
invoiceType
=
"004"
;
String
formulaExpression
=
"XXFP(\""
+
taxRate
+
"\","
+
invoiceType
+
","
+
amountType
+
","
+
period
+
")"
;
String
formulaExpression
=
"XXFP(\""
+
taxRate
+
"\","
+
invoiceType
Param
+
","
+
amountType
+
","
+
period
+
")"
;
logger
.
debug
(
formulaExpression
);
Integer
curYear
=
formulaContext
.
getYear
();
...
...
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