|
|
@@ -956,8 +956,8 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
AskGoods askGoods1 = askGoodsMapper.getWareInfo(askGoods); //要货单数量
|
|
|
int alreadyNum = askGoodsMapper.getAskInfoNumVitrual(askGoods);//已扫描总数
|
|
|
int inventoryAlready = askGoodsMapper.getInventoryAlready(askGoods);//库存已扫描数量
|
|
|
- Double inventorySurplus = (Double.parseDouble(inventory.getAmount()) - Double.parseDouble(inventory.getAmountLock())) - inventoryAlready; //库存剩余数量
|
|
|
- Double surplusNum = Double.parseDouble(askGoods1.getNum()) - Double.parseDouble(askGoods1.getOutNum()) - alreadyNum; //剩余要扫描数量
|
|
|
+ Double inventorySurplus = DateUtil.formatDouble1((Double.parseDouble(inventory.getAmount()) - Double.parseDouble(inventory.getAmountLock())) - inventoryAlready); //库存剩余数量
|
|
|
+ Double surplusNum = DateUtil.formatDouble1(Double.parseDouble(askGoods1.getNum()) - Double.parseDouble(askGoods1.getOutNum()) - alreadyNum); //剩余要扫描数量
|
|
|
|
|
|
if(Double.doubleToLongBits(surplusNum) >= Double.doubleToLongBits(inventorySurplus)){
|
|
|
askGoods.setNum(String.valueOf(inventorySurplus));
|