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
f9ef2c88
Commit
f9ef2c88
authored
Jun 25, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售出库单价金额不能小于0
parent
64bb2fb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
ServiceHGKC004.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC004.java
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC004.java
View file @
f9ef2c88
...
@@ -163,7 +163,7 @@ public class ServiceHGKC004 extends ServiceEPBase {
...
@@ -163,7 +163,7 @@ public class ServiceHGKC004 extends ServiceEPBase {
List
<
HGKC004A
>
hgkc004s
=
HGKCTools
.
HgKc004
.
getDetailById
(
hgkc004
.
getId
());
List
<
HGKC004A
>
hgkc004s
=
HGKCTools
.
HgKc004
.
getDetailById
(
hgkc004
.
getId
());
AssertUtils
.
isEmpty
(
hgkc004s
,
"销售出库单明细不存在!"
);
AssertUtils
.
isEmpty
(
hgkc004s
,
"销售出库单明细不存在!"
);
for
(
HGKC004A
hgkc004A
:
hgkc004s
)
{
for
(
HGKC004A
hgkc004A
:
hgkc004s
)
{
if
(
hgkc004A
.
getPrice
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
||
hgkc004A
.
getAmount
().
compareTo
(
BigDecimal
.
ZERO
)<=
0
){
if
(
hgkc004A
.
getPrice
().
compareTo
(
BigDecimal
.
ZERO
)
<
0
||
hgkc004A
.
getAmount
().
compareTo
(
BigDecimal
.
ZERO
)
<
0
){
throw
new
PlatException
(
"单价和金额不能小于0!"
);
throw
new
PlatException
(
"单价和金额不能小于0!"
);
}
}
HGKC010
hgkc010
=
HGKCTools
.
HgKc010
.
get
(
kc004
.
getCompanyCode
(),
kc004
.
getWhCode
(),
hgkc004A
.
getInventCode
());
HGKC010
hgkc010
=
HGKCTools
.
HgKc010
.
get
(
kc004
.
getCompanyCode
(),
kc004
.
getWhCode
(),
hgkc004A
.
getInventCode
());
...
...
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