config/Format.xml.template
author Antonio Moreno <antonio.moreno@openbravo.com>
Thu, 26 Apr 2012 17:29:26 +0200
changeset 16512 46f6c549a415
parent 12076 b9ee34858734
child 18523 1dfa6006195d
permissions -rw-r--r--
Fixed issue 20352. Do not remove an invalid value from the selector.
Reverted change done in changeset bcbda0ffe5d8. This change was causing the following behaviour to happen:
- When a field is used as part of a displaylogic of a different field, a redraw of the window will be done in case the selector value happens.
- This redraw will cause a call to the mapValueToDisplay method.
- If the user is typing the name of the business partner, the value will not be one of the valid business partner names (yet).
- With the previous version of the method, the value was then discarded. This produced the very annoying effect of reverting what the user had typed just after he had done it, if he hadn't been 'fast enough' to type the whole identifier of the business partner.
With the change done, the selector will not be cleared if a user types a (not yet completely correct) value in the selector, even if there is a valueMap which doesn't contain what the user has typed.
The issue which was supposedly fixed with this part of the mentioned changeset (issue 19724) still works fine as far as I can tell, even after having removed this part of the change.
juanpablo@10
     1
<?xml version="1.0" encoding="UTF-8" ?>
carlos@0
     2
<!--
carlos@0
     3
 *************************************************************************
jordi@1473
     4
 * The contents of this file are subject to the Openbravo Public License 
carlos@0
     5
 * Version 1.1 (the "License"), being the Mozilla Public License 
carlos@0
     6
 * version 1.1  with a permitted attribution clause ; you may not use 
carlos@0
     7
 * this file except in compliance with the License. 
carlos@0
     8
 * You may obtain a copy of the License at  
carlos@0
     9
 * http://www.openbravo.com/legal/license.txt 
carlos@0
    10
 * Software distributed under the License is distributed on an 
carlos@0
    11
 * "AS IS" basis, WITHOUT WARRANTY OF  ANY KIND, either express or 
carlos@0
    12
 * implied. See the License for the specific language governing rights 
carlos@0
    13
 * and  limitations under the License. 
jordi@1473
    14
 * The Original Code is Openbravo ERP. 
ggi@6701
    15
 * The Initial Developer of the Original Code is Openbravo SLU 
ggi@6701
    16
 * All portions are Copyright (C) 2005-2006 Openbravo SLU 
carlos@0
    17
 * All Rights Reserved. 
ggi@6701
    18
 * Contributor(s): Openbravo S.L.U.
carlos@0
    19
 ************************************************************************
carlos@0
    20
-->
carlos@0
    21
carlos@0
    22
carlos@0
    23
<!--<!DOCTYPE FormatClass SYSTEM "FormatClass.dtd">-->
carlos@0
    24
<Formats>
carlos@0
    25
   <Number name="euroInform"
adrianromero@12076
    26
       decimal="." grouping="," formatOutput="#,##0.00" formatInternal="#0.00" />
carlos@0
    27
   <Number name="euroRelation"
gorkaion@3369
    28
       decimal="." grouping="," formatOutput="#,##0.00" formatInternal="#0.00" />
carlos@0
    29
   <Number name="euroEdition"
carlos@0
    30
       decimal="." grouping="," formatOutput="#0.00" formatInternal="#0.00" />
carlos@0
    31
   <Number name="euroExcel"
adrianromero@12076
    32
       decimal="." grouping="," formatOutput="#,##0.##" formatInternal="#0.00" />
carlos@0
    33
   <Number name="priceInform"
adrianromero@12076
    34
       decimal="." grouping="," formatOutput="#,##0.##" formatInternal="#0.00" />
carlos@0
    35
   <Number name="priceRelation"
gorkaion@3369
    36
       decimal="." grouping="," formatOutput="#,##0.00" formatInternal="#0.00" />
carlos@0
    37
   <Number name="priceEdition"
carlos@0
    38
       decimal="." grouping="," formatOutput="#0.00" formatInternal="#0.00" />
carlos@0
    39
   <Number name="integerInform"
adrianromero@12076
    40
       decimal="." grouping="," formatOutput="#,##0" formatInternal="#0" />
carlos@0
    41
   <Number name="integerRelation"
carlos@0
    42
       decimal="." grouping="," formatOutput="#,##0" formatInternal="#0" />
carlos@0
    43
   <Number name="integerEdition"
carlos@0
    44
       decimal="." grouping="," formatOutput="#0" formatInternal="#0" />
carlos@0
    45
   <Number name="integerExcel"
adrianromero@12076
    46
       decimal="." grouping="," formatOutput="#,##0" formatInternal="#0" />
carlos@0
    47
   <Number name="priceExcel"
adrianromero@12076
    48
       decimal="." grouping="," formatOutput="#,##0.##" formatInternal="#0.00" />
carlos@0
    49
   <Number name="qtyRelation"
carlos@0
    50
       decimal="." grouping="," formatOutput="#,##0.###" formatInternal="#0.000" />
carlos@0
    51
   <Number name="qtyEdition"
david@4729
    52
       decimal="." grouping="," formatOutput="#0.###" formatInternal="#0.000" />
carlos@0
    53
   <Number name="qtyExcel"
adrianromero@12076
    54
       decimal="." grouping="," formatOutput="#,##0.###" formatInternal="#0.000" />
carlos@0
    55
   <Number name="generalQtyRelation"
carlos@0
    56
       decimal="." grouping="," formatOutput="#,##0.######" formatInternal="#0.000000" />
carlos@0
    57
   <Number name="generalQtyEdition"
carlos@0
    58
       decimal="." grouping="," formatOutput="#0.######" formatInternal="#0.000000" />
carlos@0
    59
   <Number name="generalQtyExcel"
adrianromero@12076
    60
       decimal="." grouping="," formatOutput="#,##0.######" formatInternal="#0.000000" />
carlos@0
    61
   <Number name="amountInform"
adrianromero@12076
    62
       decimal="." grouping="," formatOutput="#,##0.00" formatInternal="#0.00" />
carlos@0
    63
</Formats>