|
|
@ -901,6 +901,7 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService {
|
|
|
|
thrInvOrderDetail.setRelId(sk.getRelId());
|
|
|
|
thrInvOrderDetail.setRelId(sk.getRelId());
|
|
|
|
thrInvOrderDetail.setSupId(sk.getSupId() + "");
|
|
|
|
thrInvOrderDetail.setSupId(sk.getSupId() + "");
|
|
|
|
thrInvOrderDetail.setHandleStatus(1);
|
|
|
|
thrInvOrderDetail.setHandleStatus(1);
|
|
|
|
|
|
|
|
|
|
|
|
thrInvOrderDetail.setToBillNo(null);
|
|
|
|
thrInvOrderDetail.setToBillNo(null);
|
|
|
|
|
|
|
|
|
|
|
|
List<InvProductEntity> invProductEntities = invProductService.selectByRelId(relId, null, null, thrInvOrder.getInvCode());
|
|
|
|
List<InvProductEntity> invProductEntities = invProductService.selectByRelId(relId, null, null, thrInvOrder.getInvCode());
|
|
|
@ -918,6 +919,10 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService {
|
|
|
|
if (StrUtil.isEmpty(item.getSupId()) && invProductEntity1 != null) {
|
|
|
|
if (StrUtil.isEmpty(item.getSupId()) && invProductEntity1 != null) {
|
|
|
|
item.setSupId(invProductEntity1.getSupId());
|
|
|
|
item.setSupId(invProductEntity1.getSupId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (bussinessTypeEntity.getMainAction().equals(ConstantType.TYPE_PUT)) {
|
|
|
|
|
|
|
|
thrInvOrderDetail.setBatchNo(invProductEntities.get(0).getBatchNo());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (StrUtil.isEmpty(item.getSupId())) {
|
|
|
|
if (StrUtil.isEmpty(item.getSupId())) {
|
|
|
|
CompanyProductRelevanceEntity udiRlSupEntity = udiRlSupService.selOneByRlId(relId);
|
|
|
|
CompanyProductRelevanceEntity udiRlSupEntity = udiRlSupService.selOneByRlId(relId);
|
|
|
@ -1662,7 +1667,10 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService {
|
|
|
|
thrInvOrderDetail.setPrice(BigDecimal.ZERO);
|
|
|
|
thrInvOrderDetail.setPrice(BigDecimal.ZERO);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
thrInvOrderDetail.setPrice(udiRlSupEntity.getPrice());
|
|
|
|
thrInvOrderDetail.setPrice(udiRlSupEntity.getPrice());
|
|
|
|
|
|
|
|
if (item.getMainAction().equals(ConstantType.TYPE_PUT)) {
|
|
|
|
|
|
|
|
InvProductEntity invProductEntity = (InvProductEntity) invProductService.selectExitInv(thrInvOrderDetail.getInvCode(), Long.parseLong(udiRlSupEntity.getCustomerId()), Long.parseLong(udiRlSupEntity.getUdiRlIdFk()));
|
|
|
|
|
|
|
|
thrInvOrderDetail.setBatchNo(invProductEntity.getBatchNo());
|
|
|
|
|
|
|
|
}
|
|
|
|
if (count1 <= IntUtil.value(thrInvOrderDetail.getReCount())) {
|
|
|
|
if (count1 <= IntUtil.value(thrInvOrderDetail.getReCount())) {
|
|
|
|
int relCount = IntUtil.value(thrInvOrderDetail.getReCount()) - count1;
|
|
|
|
int relCount = IntUtil.value(thrInvOrderDetail.getReCount()) - count1;
|
|
|
|
for (int j = i + 1; j < udiRlSupEntitys.size(); j++) {
|
|
|
|
for (int j = i + 1; j < udiRlSupEntitys.size(); j++) {
|
|
|
|