Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
87dafe79
Commit
87dafe79
authored
Sep 15, 2022
by
季圣华
Browse files
优化已经完成明细的接口,增加退货单的相关逻辑
parent
f4d3bdba
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java
View file @
87dafe79
...
...
@@ -909,16 +909,27 @@ public class DepotItemService {
DepotHead
depotHead
=
depotHeadMapper
.
selectByPrimaryKey
(
headerId
);
String
linkNumber
=
depotHead
.
getNumber
();
//订单号
if
(
"purchase"
.
equals
(
linkType
))
{
//针对以销定购的情况
if
(
BusinessConstants
.
SUB_TYPE_SALES_ORDER
.
equals
(
depotHead
.
getSubType
()))
{
goToType
=
BusinessConstants
.
SUB_TYPE_PURCHASE_ORDER
;
}
}
else
{
//采购订单转采购入库
if
(
BusinessConstants
.
SUB_TYPE_PURCHASE_ORDER
.
equals
(
depotHead
.
getSubType
()))
{
goToType
=
BusinessConstants
.
SUB_TYPE_PURCHASE
;
}
//销售订单转销售出库
if
(
BusinessConstants
.
SUB_TYPE_SALES_ORDER
.
equals
(
depotHead
.
getSubType
()))
{
goToType
=
BusinessConstants
.
SUB_TYPE_SALES
;
}
//采购入库转采购退货
if
(
BusinessConstants
.
SUB_TYPE_PURCHASE
.
equals
(
depotHead
.
getSubType
()))
{
goToType
=
BusinessConstants
.
SUB_TYPE_PURCHASE_RETURN
;
}
//销售出库转销售退货
if
(
BusinessConstants
.
SUB_TYPE_SALES
.
equals
(
depotHead
.
getSubType
()))
{
goToType
=
BusinessConstants
.
SUB_TYPE_SALES_RETURN
;
}
}
BigDecimal
count
=
depotItemMapperEx
.
getFinishNumber
(
meId
,
linkId
,
linkNumber
,
goToType
);
//根据多单位情况进行数量的转换
...
...
Write
Preview
Supports
Markdown
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