|
|
@@ -3776,10 +3776,10 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
stockOne.setInventoryAmount(stockOne.getInventoryAmount().subtract(inventoryAmount));
|
|
|
stockOne.setRebateInventoryAmount(stockOne.getRebateInventoryAmount().subtract(rebateInventoryAmount));
|
|
|
stockOne.setVersion(stockOne.getVersion());
|
|
|
- /*if (stockOne.getBalanceQuantity().compareTo(new BigDecimal("0")) != 0) {
|
|
|
+ if (stockOne.getBalanceQuantity().compareTo(new BigDecimal("0")) != 0) {
|
|
|
stockOne.setInventoryCostPrice(stockOne.getInventoryAmount().divide(stockOne.getBalanceQuantity(), MathContext.DECIMAL32).setScale(2, RoundingMode.HALF_UP));
|
|
|
stockOne.setRebatePrice(stockOne.getRebateInventoryAmount().divide(stockOne.getBalanceQuantity(), MathContext.DECIMAL32).setScale(2, RoundingMode.HALF_UP));
|
|
|
- }*/
|
|
|
+ }
|
|
|
pjStockDescArrayList.add(stockOne);
|
|
|
} else {
|
|
|
System.err.println("商品:" + goodsDesc.getCname());
|