You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/10/30 09:52:36 UTC

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

Author: jacopoc
Date: Tue Oct 30 01:52:35 2007
New Revision: 589991

URL: http://svn.apache.org/viewvc?rev=589991&view=rev
Log:
This is a better solution for the fix about billing account balance in some locale.

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=589991&r1=589990&r2=589991&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml Tue Oct 30 01:52:35 2007
@@ -92,9 +92,12 @@
     </form>
 
     <form name="EditBillingAccount" type="single" target="updateBillingAccount" title="" default-map-name="billingAccount">
+        <actions>
+            <set field="availableBalance" value="${bsh:org.ofbiz.accounting.payment.BillingAccountWorker.getBillingAccountBalance(billingAccount)}" type="BigDecimal"/>
+        </actions>
         <alt-target use-when="billingAccount==null" target="createBillingAccount"/>
         <auto-fields-service service-name="updateBillingAccount" map-name="billingAccount"/>
- 
+
         <field name="description"><text size="60"/></field> 
         
         <field use-when="billingAccount!=null" name="billingAccountId" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
@@ -126,11 +129,8 @@
             <display description="${bsh:org.ofbiz.accounting.payment.BillingAccountWorker.getBillingAccountNetBalance(delegator, billingAccountId)}" type="currency" currency="${billingAccount.accountCurrencyUomId}"/>
         </field>
         -->
-        <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 name="availableBalance" title="${uiLabelMap.AccountingBillingAvailableBalance}" tooltip="${uiLabelMap.AccountingBillingAvailableBalanceMessage}">
+            <display type="currency" currency="${billingAccount.accountCurrencyUomId}"/>
         </field>
 
         <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>



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

Posted by Jacopo Cappellato <ti...@sastau.it>.
Hi Rashko,

Rashko Rejmer wrote:
> Hi Jacopo, 
> 
> This is the description for my previous post - I forgot it, sorry :)
> I think that you forgot to add description to the field available
> account balance. The amount is missing. 
> Maybe this will help:

in rev.590619 I've fixed the issue in a different way.

Thanks for your help!

Jacopo


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

Posted by Rashko Rejmer <rr...@iguanait.com>.
Hi Jacopo, 

This is the description for my previous post - I forgot it, sorry :)
I think that you forgot to add description to the field available
account balance. The amount is missing. 
Maybe this will help:
-- 
View this message in context: http://www.nabble.com/svn-commit%3A-r589991----ofbiz-trunk-applications-accounting-widget-BillingAccountForms.xml-tf4717156.html#a13494807
Sent from the OFBiz - Commits mailing list archive at Nabble.com.