Commit 59838603 by huluobin

周转波动预测修改

parent 15936b73
...@@ -571,12 +571,11 @@ public class AutoTurnoverJob extends PointJob { ...@@ -571,12 +571,11 @@ public class AutoTurnoverJob extends PointJob {
if (hasMonitorFluctuation) { if (hasMonitorFluctuation) {
// if (realInventory > forecastSalesList.get(0).add(totalSafeInventory).doubleValue()) { // if (realInventory > forecastSalesList.get(0).add(totalSafeInventory).doubleValue()) {
DcAutoForecastFluctuation dcAutoForecastFluctuationActual = null; DcAutoForecastFluctuation dcAutoForecastFluctuationActual = null;
if (new BigDecimal(realInventory).add(totalInbound).subtract(totalSales).subtract(totalSafeInventory).compareTo(BigDecimal.ZERO) > 0) { if (forecastPurchaseAdvisedList.get(0).compareTo(BigDecimal.ZERO) < 0) {
dcAutoForecastFluctuationActual = new DcAutoForecastFluctuation(); dcAutoForecastFluctuationActual = new DcAutoForecastFluctuation();
//实际冗余 //实际冗余
dcAutoForecastFluctuationActual.setType(3); dcAutoForecastFluctuationActual.setType(3);
float v = new BigDecimal(realInventory).add(totalInbound).subtract(totalSales).subtract(totalSafeInventory).compareTo(BigDecimal.ZERO); dcAutoForecastFluctuationActual.setQuantity(Math.abs(forecastPurchaseAdvisedList.get(0).intValue()));
dcAutoForecastFluctuationActual.setQuantity(Math.round(v));
} }
if (outStock > 0) { if (outStock > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment