Fixes issue 23301: Price reference columns can be sed as filter columns
authorAugusto Mauch <augusto.mauch@openbravo.com>
Thu, 14 Mar 2013 11:14:32 +0100
changeset 9912 6592e5263279
parent 9911 444911e2b851
child 9913 616ba2920bdc
Fixes issue 23301: Price reference columns can be sed as filter columns

Price columns, as opposed to Amount and Number columns, do not have a minimum and maximum range when they are filtered, only a minimum value [1]. The UIPrice reference has been changed so that it behaves this way.

[1] http://fugoconsulting.wordpress.com/tag/difference-between-amount-and-price-in-openbravo/
src/org/openbravo/reference/ui/UIPrice.java
--- a/src/org/openbravo/reference/ui/UIPrice.java	Mon Feb 04 11:58:26 2013 +0100
+++ b/src/org/openbravo/reference/ui/UIPrice.java	Thu Mar 14 11:14:32 2013 +0100
@@ -27,7 +27,7 @@
 public class UIPrice extends UIReference {
   public UIPrice(String reference, String subreference) {
     super(reference, subreference);
-    addSecondaryFilter = true;
+    addSecondaryFilter = false;
     numeric = true;
   }