issue 22927: Standard cost algorithm fully supports
authorJavier Etxarri <javier.echarri@openbravo.com>
Thu, 31 Jan 2013 18:16:22 +0100
changeset 19537 42aac1ca959c
parent 19536 d8b5d2563b3b
child 19538 d1469d10c70a
issue 22927: Standard cost algorithm fully supports
manufacturing costs
src/org/openbravo/costing/CostingServer.java
--- a/src/org/openbravo/costing/CostingServer.java	Thu Jan 31 18:01:04 2013 +0100
+++ b/src/org/openbravo/costing/CostingServer.java	Thu Jan 31 18:16:22 2013 +0100
@@ -109,7 +109,7 @@
     // FIXME: remove when manufacturing costs are fully migrated
     // In case the product is Manufacturing type it is forced to use Average Algorithm
     if (transaction.getProduct().isProduction()
-        && costAlgorithm.getJavaClassName() != "org.openbravo.costing.StandardAlgorithm") {
+        && !"org.openbravo.costing.StandardAlgorithm".equals(costAlgorithm.getJavaClassName())) {
       OBQuery<org.openbravo.model.materialmgmt.cost.CostingAlgorithm> caQry = OBDal.getInstance()
           .createQuery(
               org.openbravo.model.materialmgmt.cost.CostingAlgorithm.class,