|
|
|
@ -27,6 +27,7 @@ import com.glxp.api.admin.entity.inout.WarehouseEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.inventory.InvProductDetailEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.inventory.InvProductEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.inventory.InvSubWarehouseEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.inventory.InvWarehouseEntity;
|
|
|
|
|
import com.glxp.api.admin.req.business.StockOrderFilterRequest;
|
|
|
|
|
import com.glxp.api.admin.req.inout.OrderFilterRequest;
|
|
|
|
|
import com.glxp.api.admin.req.inout.OrderQueryRequest;
|
|
|
|
@ -314,11 +315,14 @@ public class OrderServiceImpl implements OrderService {
|
|
|
|
|
supplementOrder.setReceiveStatus(0); //设置验收状态为未验收
|
|
|
|
|
supplementOrder.setCorpOrderId(CustomUtil.getId() + "x");
|
|
|
|
|
//修改往来单位及当前库存号
|
|
|
|
|
supplementOrder.setFromCorpId(order.getLocStorageCode());
|
|
|
|
|
supplementOrder.setFromCorpId(order.getInvWarehouseCode());
|
|
|
|
|
supplementOrder.setSubInvCode(order.getInvStorageCode());
|
|
|
|
|
supplementOrder.setFromSubInvCode(order.getInvWarehouseCode());
|
|
|
|
|
supplementOrder.setLocStorageCode(order.getFromCorpId());
|
|
|
|
|
supplementOrder.setInvWarehouseCode(null);
|
|
|
|
|
String name = invWarehouseDao.getNameByCode(supplementOrder.getFromCorpId());
|
|
|
|
|
//根据分库code查询总库coder
|
|
|
|
|
InvSubWarehouseEntity invSubWarehouseEntity=invSubWarehouseDao.filterGroupInvSubAndcode(order.getFromCorpId());
|
|
|
|
|
supplementOrder.setLocStorageCode(invSubWarehouseEntity.getParentId());
|
|
|
|
|
supplementOrder.setInvStorageCode(invSubWarehouseEntity.getParentId());
|
|
|
|
|
String name = invWarehouseDao.getNameByCode(order.getInvStorageCode());
|
|
|
|
|
if (StrUtil.isNotEmpty(order.getFromSubInvCode())) {
|
|
|
|
|
supplementOrder.setInvWarehouseCode(order.getFromSubInvCode());
|
|
|
|
|
} else {
|
|
|
|
|