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