Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
6c1d37ca
Commit
6c1d37ca
authored
Apr 11, 2024
by
yukang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售出库计算重量调整
parent
ea3f0bf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
ServiceHPKC004A.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004A.java
+4
-1
No files found.
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004A.java
View file @
6c1d37ca
...
...
@@ -24,6 +24,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
java.math.BigDecimal
;
import
java.text.DecimalFormat
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -107,7 +108,9 @@ public class ServiceHPKC004A extends ServiceEPBase {
newKc004
.
setSaleNo
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
HPKC004_SALE_NO
));
newKc004
.
setReceiptDate
(
DateUtils
.
shortDate
());
newKc004
.
setAmount
(
applyAmount
);
newKc004
.
setWeight
(
applyAmount
.
multiply
(
dbKc011
.
getUnitWeight
()).
divide
(
new
BigDecimal
(
"1000"
)));
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
BigDecimal
totalWt
=
new
BigDecimal
(
decimalFormat
.
format
(
applyAmount
.
multiply
(
dbKc011
.
getUnitWeight
()).
divide
(
new
BigDecimal
(
"1000"
))));
newKc004
.
setWeight
(
totalWt
);
newKc004
.
setRemark
(
applyRemark
);
newKc004
.
setKcId
(
kcId
);
newKc004
.
setIsPrint
(
CommonConstant
.
YesNo
.
NO_0
);
...
...
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