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
424abbe6
Commit
424abbe6
authored
Apr 17, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
082b14c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
RevenueConfService.java
...ava/pwc/taxtech/atms/service/impl/RevenueConfService.java
+7
-3
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/RevenueConfService.java
View file @
424abbe6
...
...
@@ -184,8 +184,12 @@ public class RevenueConfService extends BaseService {
revenueConfig
.
setTbSegment6
(
""
);
}
String
taxRat
=
POIUtil
.
getCellFormulaString
(
row
.
getCell
(
RevenueConfEnum
.
EXECLColumn
.
Column_7
.
getIndex
()));
taxRat
=
taxRat
.
replaceAll
(
"%"
,
""
);
revenueConfig
.
setTaxRate
(
new
BigDecimal
(
taxRat
));
if
(
taxRat
.
indexOf
(
"%"
)>
0
){
taxRat
=
taxRat
.
replaceAll
(
"%"
,
""
);
revenueConfig
.
setTaxRate
(
new
BigDecimal
(
taxRat
).
divide
(
new
BigDecimal
(
100
)));
}
else
{
revenueConfig
.
setTaxRate
(
new
BigDecimal
(
taxRat
));
}
revenueConfig
.
setTaxBase
(
RevenueConfEnum
.
TaxBase
.
REVERSAL_MAPPING
.
get
(
POIUtil
.
getCellFormulaString
(
row
.
getCell
(
RevenueConfEnum
.
EXECLColumn
.
Column_8
.
getIndex
()))));
if
(
revenueConfig
.
getTaxBase
().
intValue
()
==
4
){
revenueConfig
.
setBaseDrCode
(
POIUtil
.
getCellFormulaString
(
row
.
getCell
(
RevenueConfEnum
.
EXECLColumn
.
Column_9
.
getIndex
())));
...
...
@@ -292,7 +296,7 @@ public class RevenueConfService extends BaseService {
row
.
getCell
(
RevenueConfEnum
.
EXECLColumn
.
Column_4
.
getIndex
()).
setCellValue
(
revenueConfig
.
getTbSegment3
());
row
.
getCell
(
RevenueConfEnum
.
EXECLColumn
.
Column_5
.
getIndex
()).
setCellValue
(
revenueConfig
.
getTbSegment5
());
row
.
getCell
(
RevenueConfEnum
.
EXECLColumn
.
Column_6
.
getIndex
()).
setCellValue
(
revenueConfig
.
getTbSegment6
());
row
.
getCell
(
RevenueConfEnum
.
EXECLColumn
.
Column_7
.
getIndex
()).
setCellValue
(
String
.
valueOf
(
revenueConfig
.
getTaxRate
().
multiply
(
new
BigDecimal
(
100
)).
intValue
())+
"%"
);
row
.
getCell
(
RevenueConfEnum
.
EXECLColumn
.
Column_7
.
getIndex
()).
setCellValue
(
revenueConfig
.
getTaxRate
().
doubleValue
()
);
row
.
getCell
(
RevenueConfEnum
.
EXECLColumn
.
Column_8
.
getIndex
()).
setCellValue
(
RevenueConfEnum
.
TaxBase
.
MAPPING
.
get
(
revenueConfig
.
getTaxBase
()));
if
(
revenueConfig
.
getTaxBase
().
intValue
()
==
4
){
row
.
getCell
(
RevenueConfEnum
.
EXECLColumn
.
Column_9
.
getIndex
()).
setCellValue
(
revenueConfig
.
getBaseDrCode
());
...
...
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