Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
964b0dc3
Commit
964b0dc3
authored
Jun 26, 2024
by
13420
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扣款金额不能大于销售开票剩余金额bug修改
parent
4caab276
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
HGCWTools.java
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
+3
-3
No files found.
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
View file @
964b0dc3
...
@@ -158,7 +158,7 @@ public class HGCWTools {
...
@@ -158,7 +158,7 @@ public class HGCWTools {
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
HGCW008
hgcw008
=
results
.
get
(
0
);
HGCW008
hgcw008
=
results
.
get
(
0
);
BigDecimal
remainingAmount
=
new
BigDecimal
(
decimalFormat
.
format
(
hgcw008
.
getRemainingAmount
().
subtract
(
deductionAmount
)));
BigDecimal
remainingAmount
=
new
BigDecimal
(
decimalFormat
.
format
(
hgcw008
.
getRemainingAmount
().
subtract
(
deductionAmount
)));
if
(
remainingAmount
.
compareTo
(
new
BigDecimal
(
BigInteger
.
ZERO
))
<
=
0
)
{
if
(
remainingAmount
.
compareTo
(
new
BigDecimal
(
BigInteger
.
ZERO
))
<
0
)
{
throw
new
PlatException
(
"扣款金额不能大于结算单剩余金额!"
);
throw
new
PlatException
(
"扣款金额不能大于结算单剩余金额!"
);
}
}
hgcw008
.
setRemainingAmount
(
remainingAmount
);
hgcw008
.
setRemainingAmount
(
remainingAmount
);
...
@@ -343,7 +343,7 @@ public class HGCWTools {
...
@@ -343,7 +343,7 @@ public class HGCWTools {
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
HGCW010
HGCW010
=
results
.
get
(
0
);
HGCW010
HGCW010
=
results
.
get
(
0
);
BigDecimal
remainingAmount
=
new
BigDecimal
(
decimalFormat
.
format
(
HGCW010
.
getRemainingAmount
().
subtract
(
cutAmount
)));
BigDecimal
remainingAmount
=
new
BigDecimal
(
decimalFormat
.
format
(
HGCW010
.
getRemainingAmount
().
subtract
(
cutAmount
)));
if
(
remainingAmount
.
compareTo
(
new
BigDecimal
(
BigInteger
.
ZERO
))
<
=
0
)
{
if
(
remainingAmount
.
compareTo
(
new
BigDecimal
(
BigInteger
.
ZERO
))
<
0
)
{
throw
new
PlatException
(
"扣款金额不能大于销售开票剩余金额!"
);
throw
new
PlatException
(
"扣款金额不能大于销售开票剩余金额!"
);
}
}
HGCW010
.
setRemainingAmount
(
remainingAmount
);
HGCW010
.
setRemainingAmount
(
remainingAmount
);
...
@@ -416,7 +416,7 @@ public class HGCWTools {
...
@@ -416,7 +416,7 @@ public class HGCWTools {
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
HGCW012
HGCW012
=
results
.
get
(
0
);
HGCW012
HGCW012
=
results
.
get
(
0
);
BigDecimal
remainingAmount
=
new
BigDecimal
(
decimalFormat
.
format
(
HGCW012
.
getRemainingAmount
().
subtract
(
cutAmount
)));
BigDecimal
remainingAmount
=
new
BigDecimal
(
decimalFormat
.
format
(
HGCW012
.
getRemainingAmount
().
subtract
(
cutAmount
)));
if
(
remainingAmount
.
compareTo
(
new
BigDecimal
(
BigInteger
.
ZERO
))
<
=
0
)
{
if
(
remainingAmount
.
compareTo
(
new
BigDecimal
(
BigInteger
.
ZERO
))
<
0
)
{
throw
new
PlatException
(
"扣款金额不能大于采购收票剩余金额!"
);
throw
new
PlatException
(
"扣款金额不能大于采购收票剩余金额!"
);
}
}
HGCW012
.
setRemainingAmount
(
remainingAmount
);
HGCW012
.
setRemainingAmount
(
remainingAmount
);
...
...
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