丽知:1、调拨入库优化,排除实发0的存货
This commit is contained in:
parent
09fca48cb3
commit
b439f4c49c
|
@ -421,10 +421,13 @@ public class TransferInPluginInitializer extends PluginBaseEntity {
|
||||||
int i = 1;
|
int i = 1;
|
||||||
for (OFSReceiptConfirmSearchResponse.Detail detail : order.getDetails()) {
|
for (OFSReceiptConfirmSearchResponse.Detail detail : order.getDetails()) {
|
||||||
GeneralBillVO.Childrenvo childrenvo = new GeneralBillVO.Childrenvo();
|
GeneralBillVO.Childrenvo childrenvo = new GeneralBillVO.Childrenvo();
|
||||||
|
if (detail.getReceivedQty() == null || "".equals(detail.getReceivedQty()) || "0".equals(detail.getReceivedQty())) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
//cinventoryid 存货
|
//cinventoryid 存货
|
||||||
childrenvo.setCinventoryid(detail.getSkuCode());
|
childrenvo.setCinventoryid(detail.getSkuCode());
|
||||||
//ninnum 实收数量
|
//ninnum 实收数量--20250606:蓁蓁:调拨入库的能不能把入库数量为0的过滤掉呀
|
||||||
if (isReturn) {//需要反转
|
if (isReturn) {//需要反转
|
||||||
childrenvo.setNinnum("-" + detail.getReceivedQty());
|
childrenvo.setNinnum("-" + detail.getReceivedQty());
|
||||||
} else {
|
} else {
|
||||||
|
@ -450,6 +453,9 @@ public class TransferInPluginInitializer extends PluginBaseEntity {
|
||||||
}
|
}
|
||||||
ChildrenList.add(childrenvo);
|
ChildrenList.add(childrenvo);
|
||||||
}
|
}
|
||||||
|
if (ChildrenList == null || ChildrenList.size() == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
generalBillVO.setParentvo(parentvo);
|
generalBillVO.setParentvo(parentvo);
|
||||||
generalBillVO.setChildrenvo(ChildrenList);
|
generalBillVO.setChildrenvo(ChildrenList);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue