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
f8fc7915
Commit
f8fc7915
authored
Apr 24, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
8ad8df19
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ServiceHPKC013.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC013.java
+1
-1
HPKCTools.java
src/main/java/com/baosight/hpjx/hp/kc/tools/HPKCTools.java
+2
-1
No files found.
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC013.java
View file @
f8fc7915
...
...
@@ -104,7 +104,7 @@ public class ServiceHPKC013 extends ServiceBase {
// 修改库存
if
(
hpkc010
!=
null
)
{
HPKCTools
.
updateStock
(
dbKc013
.
getWhCode
(),
hpkc010
.
getInventRecordId
(),
dbKc013
.
getAmount
(),
dbKc013
.
getWeight
()
.
multiply
(
new
BigDecimal
(
1000
))
,
hpkc010
.
getFactoryCode
());
dbKc013
.
getAmount
(),
dbKc013
.
getWeight
(),
hpkc010
.
getFactoryCode
());
}
else
{
HPKCTools
.
updateProdStock
(
dbKc013
.
getWhCode
(),
dbKc013
.
getProdNo
(),
dbKc013
.
getAmount
(),
dbKc013
.
getWeight
(),
hpkc011
.
getFactoryCode
());
...
...
src/main/java/com/baosight/hpjx/hp/kc/tools/HPKCTools.java
View file @
f8fc7915
...
...
@@ -4,6 +4,7 @@ import com.baosight.hpjx.core.dao.DaoBase;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.constant.HPSqlConstant
;
import
com.baosight.hpjx.hp.kc.domain.*
;
import
com.baosight.hpjx.hp.pz.tools.HPPZTools
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
...
...
@@ -441,7 +442,7 @@ public class HPKCTools {
* @param weight
*/
public
static
void
updateStock
(
String
whCode
,
Long
inventRecordId
,
BigDecimal
amount
,
BigDecimal
weight
,
String
factCode
)
{
updateStock
(
whCode
,
inventRecordId
,
amount
,
BigDecimal
.
ZERO
,
weight
,
factCode
);
updateStock
(
whCode
,
inventRecordId
,
amount
,
HPPZTools
.
HpPz006
.
calcUnitWeight
(
inventRecordId
)
,
weight
,
factCode
);
}
/**
...
...
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