|
|
|
@ -334,6 +334,7 @@ public class IoOrderServiceImpl implements IoOrderService {
|
|
|
|
|
if (basicBussinessTypeEntity.getActionType() == ConstantStatus.ACTION_TYPE_PREIN) {
|
|
|
|
|
|
|
|
|
|
InvPreInProductDetailEntity invProductDetailEntity = invPreinProductDetailService.selectByCode(billNo, code);
|
|
|
|
|
if (invProductDetailEntity != null) {
|
|
|
|
|
int count = invProductDetailEntity.getCount() - 1;
|
|
|
|
|
int reCount = udiCalCountUtil.getActCount(invProductDetailEntity.getNameCode());
|
|
|
|
|
if (count == 0) {
|
|
|
|
@ -357,9 +358,12 @@ public class IoOrderServiceImpl implements IoOrderService {
|
|
|
|
|
invProductEntity.setReCount(invProductEntity.getInCount() - invProductEntity.getOutCount());
|
|
|
|
|
}
|
|
|
|
|
invPreinProductService.update(invProductEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (basicBussinessTypeEntity.getActionType() == ConstantStatus.ACTION_TYPE_ADVANCE) { //寄售库存
|
|
|
|
|
InvPreProductDetailEntity invProductDetailEntity = invPreProductDetailService.selectByCode(billNo, code);
|
|
|
|
|
if (invProductDetailEntity != null) {
|
|
|
|
|
int count = invProductDetailEntity.getCount() - 1;
|
|
|
|
|
int reCount = udiCalCountUtil.getActCount(invProductDetailEntity.getNameCode());
|
|
|
|
|
if (count == 0) {
|
|
|
|
@ -383,8 +387,12 @@ public class IoOrderServiceImpl implements IoOrderService {
|
|
|
|
|
invProductEntity.setReCount(invProductEntity.getInCount() - invProductEntity.getOutCount());
|
|
|
|
|
}
|
|
|
|
|
invPreProductService.update(invProductEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else { //普通库存
|
|
|
|
|
InvProductDetailEntity invProductDetailEntity = invProductDetailService.selectByCode(billNo, code);
|
|
|
|
|
|
|
|
|
|
if (invProductDetailEntity != null) {
|
|
|
|
|
int count = invProductDetailEntity.getCount() - 1;
|
|
|
|
|
int reCount = udiCalCountUtil.getActCount(invProductDetailEntity.getNameCode());
|
|
|
|
|
if (count == 0) {
|
|
|
|
@ -409,6 +417,7 @@ public class IoOrderServiceImpl implements IoOrderService {
|
|
|
|
|
}
|
|
|
|
|
invProductService.update(invProductEntity);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|