|
@@ -993,14 +993,26 @@ public class FabricLossServiceImpl extends ServiceImpl<FabricLossMapper, FabricL
|
|
|
|
|
|
}while(bFind);
|
|
|
|
|
|
+ calCkList.addAll(rowOutList.stream().filter(e->e.getIQuantityOut()!=0.0).collect(Collectors.toList()));
|
|
|
// 没计算成本的设置为0
|
|
|
for (FabricMoOrderCK item : calCkList){
|
|
|
+ item.setIQuantityOut(DoubleOperation.getScale(item.getIQuantityOut(), 4));
|
|
|
if (item.getIMoney() == null){
|
|
|
item.setIMoney(0.0);
|
|
|
}
|
|
|
if (item.getIPrice() == null){
|
|
|
item.setIPrice(0.0);
|
|
|
}
|
|
|
+ if (item.getIQuantity() == null){
|
|
|
+ item.setIQuantity(item.getIQuantityOut());
|
|
|
+ }
|
|
|
+ if (item.getIQuantityIn() == null){
|
|
|
+ item.setIQuantityIn(item.getIQuantityOut());
|
|
|
+ }
|
|
|
+ if (item.getCSourceInvId() == null){
|
|
|
+ item.setCSourceInvId("");
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
// 设置没计算成本的内容
|
|
|
for (FabricOMOrder omOrder : omOrderList){
|