svn commit: r589978 - /ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r589978 - /ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml

jacopoc
Author: jacopoc
Date: Tue Oct 30 00:30:11 2007
New Revision: 589978

URL: http://svn.apache.org/viewvc?rev=589978&view=rev
Log:
Applied patch from Guido Amarilla (OFBIZ-1373) to fix the parsing/formatting of the billing account balance in some locale (including Spanish).
This is really a workaround but we should probably improve the widget code to better handle numer fields.

Modified:
    ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml

Modified: ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml?rev=589978&r1=589977&r2=589978&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml Tue Oct 30 00:30:11 2007
@@ -126,8 +126,11 @@
             <display description="${bsh:org.ofbiz.accounting.payment.BillingAccountWorker.getBillingAccountNetBalance(delegator, billingAccountId)}" type="currency" currency="${billingAccount.accountCurrencyUomId}"/>
         </field>
         -->
-        <field name="availableBalance" title="${uiLabelMap.AccountingBillingAvailableBalance}" tooltip="${uiLabelMap.AccountingBillingAvailableBalanceMessage}">
-            <display description="${bsh:org.ofbiz.accounting.payment.BillingAccountWorker.getBillingAccountBalance(billingAccount)}" type="currency" currency="${billingAccount.accountCurrencyUomId}"/>
+        <field name="availableBalanceBIL" title="${uiLabelMap.AccountingBillingAvailableBalance}" tooltip="${uiLabelMap.AccountingBillingAvailableBalanceMessage}">
+            <display description="${bsh:
+                import java.text.NumberFormat;
+                return(NumberFormat.getNumberInstance(context.get(&quot;locale&quot;)).format(org.ofbiz.accounting.payment.BillingAccountWorker.getBillingAccountBalance(billingAccount)));}"
+                     type="currency" currency="${billingAccount.accountCurrencyUomId}"/>
         </field>
 
         <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>