From 3077a6b135ce218ea05cc8f11a6855742c1a1faa Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 28 Mar 2007 04:05:32 +0000 Subject: [PATCH] minor change - keep indentation --- .../org/compiere/process/ReplenishReport.java | 64 +++++++++---------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/base/src/org/compiere/process/ReplenishReport.java b/base/src/org/compiere/process/ReplenishReport.java index 2282cd6f27..504eed13fd 100644 --- a/base/src/org/compiere/process/ReplenishReport.java +++ b/base/src/org/compiere/process/ReplenishReport.java @@ -316,40 +316,40 @@ public class ReplenishReport extends SvrProcess String className = wh.getReplenishmentClass(); if (className != null && className.length() > 0) { - // Get Replenishment Class - ReplenishInterface custom = null; - try - { - Class clazz = Class.forName(className); - custom = (ReplenishInterface)clazz.newInstance(); - } - catch (Exception e) - { - throw new AdempiereUserError("No custom Replenishment class " - + className + " - " + e.toString()); - } - - X_T_Replenish[] replenishs = getReplenish("ReplenishType='9'"); - for (int i = 0; i < replenishs.length; i++) - { - X_T_Replenish replenish = replenishs[i]; - if (replenish.getReplenishType().equals(X_T_Replenish.REPLENISHTYPE_Custom)) + // Get Replenishment Class + ReplenishInterface custom = null; + try { - BigDecimal qto = null; - try - { - qto = custom.getQtyToOrder(wh, replenish); - } - catch (Exception e) - { - log.log(Level.SEVERE, custom.toString(), e); - } - if (qto == null) - qto = Env.ZERO; - replenish.setQtyToOrder(qto); - replenish.save(); + Class clazz = Class.forName(className); + custom = (ReplenishInterface)clazz.newInstance(); + } + catch (Exception e) + { + throw new AdempiereUserError("No custom Replenishment class " + + className + " - " + e.toString()); + } + + X_T_Replenish[] replenishs = getReplenish("ReplenishType='9'"); + for (int i = 0; i < replenishs.length; i++) + { + X_T_Replenish replenish = replenishs[i]; + if (replenish.getReplenishType().equals(X_T_Replenish.REPLENISHTYPE_Custom)) + { + BigDecimal qto = null; + try + { + qto = custom.getQtyToOrder(wh, replenish); + } + catch (Exception e) + { + log.log(Level.SEVERE, custom.toString(), e); + } + if (qto == null) + qto = Env.ZERO; + replenish.setQtyToOrder(qto); + replenish.save(); + } } - } } // Delete rows where nothing to order sql = "DELETE T_Replenish "