Commit e2f20f81da8c2e4631701f527aa0dc66448a8876
1 parent
66f0bc51
新增调整明细单据对比主单的上层单据判断。
Showing
1 changed file
with
5 additions
and
0 deletions
src/main/java/com/huaheng/pc/inventory/adjustDetail/service/AdjustDetailServiceImpl.java
... | ... | @@ -89,6 +89,11 @@ public class AdjustDetailServiceImpl extends ServiceImpl<AdjustDetailMapper, Adj |
89 | 89 | return AjaxResult.error("没有该条库存明细"); |
90 | 90 | } |
91 | 91 | } |
92 | + //明细单据的上层单编码需要和主单一直,主单空值则不判断 | |
93 | + if(StringUtils.isNotEmpty(adjustHeader.getCycleCountCode()) || StringUtils.isNotEmpty(adjustHeader.getCheckCode())){ | |
94 | + adjustDetail.setCycleCountCode(adjustHeader.getCycleCountCode()); | |
95 | + adjustDetail.setCheckCode(adjustHeader.getCheckCode()); | |
96 | + } | |
92 | 97 | //检查盘点单 |
93 | 98 | if(StringUtils.isNotEmpty(adjustDetail.getCycleCountCode())){ |
94 | 99 | CycleCountDetail cycleCountDetail = cycleCountDetailService.getById(adjustDetail.getCheckDetailId()); |
... | ... |