|
|
@@ -172,7 +172,7 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
//更新明细金额等
|
|
|
setTotal(prodInOutNow);
|
|
|
//日志
|
|
|
- messageLogService.update(baseDTO);
|
|
|
+ messageLogService.update(baseDTO);
|
|
|
return baseDTO;
|
|
|
|
|
|
}
|
|
|
@@ -415,7 +415,7 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
targetPi.setPi_recordmanid(BaseContextHolder.getUserId());
|
|
|
targetPi.setPi_recorddate(new Date());
|
|
|
targetPi.setPi_recordman("TESTADMIN");
|
|
|
-
|
|
|
+ targetPi.setPi_ioid(id);
|
|
|
targetPi.setPi_inoutno(piInoutno);
|
|
|
targetPi.setPi_class(BillCodeSeq.SALEIN.getName());
|
|
|
targetPi.setPi_date(new Date());
|
|
|
@@ -623,14 +623,14 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
if(prodInOut.getPi_said()!=null) {
|
|
|
prodIODetailMapper.updateSaleYqty(prodInOut.getPi_said());
|
|
|
}
|
|
|
- }else{//销售退货单z
|
|
|
+ }else{//销售退货单
|
|
|
//更新明细
|
|
|
prodIODetailMapper.updatePDSaleIN(id);
|
|
|
//更新主表
|
|
|
prodInOutMapper.updatePiTotal(id);
|
|
|
//出货单已转数
|
|
|
- if(prodInOut.getPi_said()!=null){
|
|
|
- prodIODetailMapper.updateSaleOutYqty(prodInOut.getPi_said());
|
|
|
+ if(prodInOut.getPi_ioid()!= null) {
|
|
|
+ prodIODetailMapper.updateSaleOutYqty(prodInOut.getPi_ioid());
|
|
|
}
|
|
|
}
|
|
|
}
|