details: https://code.openbravo.com/erp/devel/pi/rev/e41b94ecad5b
changeset: 25762:e41b94ecad5b
user: Unai Martirena <unai.martirena <at> openbravo.com>
date: Tue Jan 27 20:10:56 2015 +0100
summary: Related to issue 28792: Uncomment a piece of code
diffstat:
src/org/openbravo/costing/AverageCostAdjustment.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (29 lines):
diff -r 26cbf54910c2 -r e41b94ecad5b
src/org/openbravo/costing/AverageCostAdjustment.java
--- a/src/org/openbravo/costing/AverageCostAdjustment.java Tue Jan 27
20:08:23 2015 +0100
+++ b/src/org/openbravo/costing/AverageCostAdjustment.java Tue Jan 27
20:10:56 2015 +0100
@@ -11,7 +11,7 @@
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2014 Openbravo SLU
+ * All portions are Copyright (C) 2015 Openbravo SLU
* All Rights Reserved.
* Contributor(s): ______________________________________.
*************************************************************************
@@ -388,11 +388,11 @@
// This is the current costing rule. Check if current average cost needs
to be updated.
Costing currentCosting = AverageAlgorithm.getProductCost(new Date(),
basetrx.getProduct(),
getCostDimensions(), getCostOrg());
- // if (currentCosting == null) {
- // throw new OBException("@NoAvgCostDefined@ @Organization@: " +
getCostOrg().getName()
- // + ", @Product@: " + basetrx.getProduct().getName() + ", @Date@: "
- // + OBDateUtils.formatDate(new Date()));
- // }
+ if (currentCosting == null) {
+ throw new OBException("@NoAvgCostDefined@ @Organization@: " +
getCostOrg().getName()
+ + ", @Product@: " + basetrx.getProduct().getName() + ", @Date@: "
+ + OBDateUtils.formatDate(new Date()));
+ }
if (currentCosting.getCost().compareTo(cost) != 0) {
basetrx = getTransaction();
Date newDate = new Date();
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits