Fixes issue 30421. Fixes problem in a Query condition.
authorDavid Miguelez <david.miguelez@openbravo.com>
Thu, 23 Jul 2015 17:27:54 +0200
changeset 27551 bf251ca9947e
parent 27550 d5b668d83b8d
child 27552 01405101d810
Fixes issue 30421. Fixes problem in a Query condition.
The = comparasion must be changed with >
src/org/openbravo/costing/CostAdjustmentUtils.java
--- a/src/org/openbravo/costing/CostAdjustmentUtils.java	Thu Jul 23 13:25:31 2015 +0200
+++ b/src/org/openbravo/costing/CostAdjustmentUtils.java	Thu Jul 23 17:27:54 2015 +0200
@@ -614,7 +614,7 @@
     select.append("    trxtype." + propADListPriority + " < :trxtypeprio");
     select.append("    or (");
     select.append("     trxtype." + propADListPriority + " = :trxtypeprio");
-    select.append("     and trx." + MaterialTransaction.PROPERTY_MOVEMENTQUANTITY + " = :trxqty");
+    select.append("     and trx." + MaterialTransaction.PROPERTY_MOVEMENTQUANTITY + " > :trxqty");
     select.append("        or (");
     select.append("         trx." + MaterialTransaction.PROPERTY_MOVEMENTQUANTITY + " = :trxqty");
     select.append("         and trx." + MaterialTransaction.PROPERTY_ID + " <= :trxid");