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
445ae06e
Commit
445ae06e
authored
Jun 06, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-06-06 销售出库单-提交和调拨单逻辑调整
parent
cccf4025
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
ServiceHGKC004.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC004.java
+5
-1
No files found.
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC004.java
View file @
445ae06e
...
...
@@ -158,11 +158,14 @@ public class ServiceHGKC004 extends ServiceEPBase {
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
HGKC004
hgkc004
=
new
HGKC004
();
hgkc004
.
fromMap
(
map
);
DaoUtils
.
update
(
HGKC004
.
UPDATE_STATUS
,
hgkc004
);
HGKC004
kc004
=
HGKCTools
.
HgKc004
.
getId
(
hgkc004
.
getId
());
List
<
HGKC004A
>
hgkc004s
=
HGKCTools
.
HgKc004
.
getDetailById
(
hgkc004
.
getId
());
AssertUtils
.
isEmpty
(
hgkc004s
,
"销售出库单明细不存在!"
);
for
(
HGKC004A
hgkc004A
:
hgkc004s
)
{
if
(
hgkc004A
.
getPrice
().
compareTo
(
BigDecimal
.
ZERO
)<=
0
||
hgkc004A
.
getAmount
().
compareTo
(
BigDecimal
.
ZERO
)<=
0
){
throw
new
PlatException
(
"单价和金额不能小于0!"
);
}
HGKC010
hgkc010
=
HGKCTools
.
HgKc010
.
get
(
kc004
.
getCompanyCode
(),
kc004
.
getWhCode
(),
hgkc004A
.
getInventRecordId
());
if
(
hgkc010
==
null
)
{
throw
new
PlatException
(
"库存不足!"
);
...
...
@@ -178,6 +181,7 @@ public class ServiceHGKC004 extends ServiceEPBase {
}
DaoUtils
.
update
(
HGKC010
.
UPDATE_INV
,
hgkc010
);
}
DaoUtils
.
update
(
HGKC004
.
UPDATE_STATUS
,
hgkc004
);
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsgByKey
(
"ep.1000"
,
new
String
[]{
String
.
valueOf
(
i
),
I18nMessages
.
getText
(
"label.update"
,
"修改"
)});
...
...
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