|
|
|
@ -801,7 +801,14 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
//计算扫码入库的包件是否需要把运单和提货单挂上
|
|
|
|
|
openOrderAsyncService.dealwithBillladingInfo(advanceIds,warehouseId,warehouseName,waybillId,waybillNo); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//判断是否是开单及入库的配置
|
|
|
|
|
Boolean aBoolean = basicdataOpenIncomingClient.checkOpenIncoming(warehouseId, brandId); |
|
|
|
|
if (Boolean.TRUE.equals(aBoolean)) { |
|
|
|
|
openOrderAsyncService.incomingPackageBatch(advanceIds, AuthUtil.getUserId(), Func.firstLong(AuthUtil.getDeptId()), AuthUtil.getTenantId(), AuthUtil.getNickName(), IncomingTypeEnum.OPEN_TO_IN.getCode(), warehouseId, warehouseName, waybillEntity); |
|
|
|
|
waybillEntity.setStockCount(waybillEntity.getTotalCount()); |
|
|
|
|
waybillEntity.setWaybillStatus("20"); |
|
|
|
|
warehouseWaybillClient.updateEntity(waybillEntity); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//异步存入日志
|
|
|
|
|
String nickName = AuthUtil.getNickName(); |
|
|
|
@ -972,7 +979,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
if (Objects.isNull(basicdataCategoryEntity)) { |
|
|
|
|
basicdataCategoryEntity = new BasicdataCategoryEntity(); |
|
|
|
|
basicdataCategoryEntity.setName(goodsName); |
|
|
|
|
basicdataCategoryEntity.setType("10"); |
|
|
|
|
basicdataCategoryEntity.setType("1"); |
|
|
|
|
goodsId = basicdataCategoryClient.addReturnId(basicdataCategoryEntity); |
|
|
|
|
} else { |
|
|
|
|
goodsId = basicdataCategoryEntity.getId(); |
|
|
|
|