You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2008/08/28 12:05:47 UTC

svn commit: r689773 - /ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml

Author: hansbak
Date: Thu Aug 28 03:05:46 2008
New Revision: 689773

URL: http://svn.apache.org/viewvc?rev=689773&view=rev
Log:
make the invoice list simpler

Modified:
    ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml

Modified: ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml?rev=689773&r1=689772&r2=689773&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml Thu Aug 28 03:05:46 2008
@@ -65,12 +65,8 @@
                 <field-map field-name="compareDate" env-name="invoiceDate"/>
                 <field-map field-name="lastNameFirst" value="Y"/>
             </service>
-            <set field="amountToApply" value="${bsh:
-                import java.text.NumberFormat;
-                return(NumberFormat.getNumberInstance(context.get(&quot;locale&quot;)).format(org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceNotApplied(delegator,invoiceId)));}"/>
-            <set field="total" value="${bsh:
-                import java.text.NumberFormat;
-                return(NumberFormat.getNumberInstance(context.get(&quot;locale&quot;)).format(org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceTotalBd(delegator,invoiceId)));}"/>
+            <set field="amountToApply" value="${bsh:return(org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceNotApplied(delegator,invoiceId));}"/>
+            <set field="total" value="${bsh:return(org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceTotal(delegator,invoiceId));}"/>
         </row-actions>
         
         <field name="invoiceId" widget-style="buttontext">



Re: svn commit: r689773 - /ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml

Posted by Jacques Le Roux <ja...@les7arts.com>.
Interesting use of "bsh:" :o) This remembers me that I'd like to introduce groovy also...

Jacques

From: <ha...@apache.org>
> Author: hansbak
> Date: Thu Aug 28 03:05:46 2008
> New Revision: 689773
>
> URL: http://svn.apache.org/viewvc?rev=689773&view=rev
> Log:
> make the invoice list simpler
>
> Modified:
>    ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml
>
> Modified: ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml
> URL:
> http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml?rev=689773&r1=689772&r2=689773&view=diff
> ==============================================================================
> --- ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml (original)
> +++ ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml Thu Aug 28 03:05:46 2008
> @@ -65,12 +65,8 @@
>                 <field-map field-name="compareDate" env-name="invoiceDate"/>
>                 <field-map field-name="lastNameFirst" value="Y"/>
>             </service>
> -            <set field="amountToApply" value="${bsh:
> -                import java.text.NumberFormat;
> -
> return(NumberFormat.getNumberInstance(context.get(&quot;locale&quot;)).format(org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceNotApplied(delegator,invoiceId)));}"/>
> -            <set field="total" value="${bsh:
> -                import java.text.NumberFormat;
> -
> return(NumberFormat.getNumberInstance(context.get(&quot;locale&quot;)).format(org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceTotalBd(delegator,invoiceId)));}"/>
> +            <set field="amountToApply"
> value="${bsh:return(org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceNotApplied(delegator,invoiceId));}"/>
> +            <set field="total"
> value="${bsh:return(org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceTotal(delegator,invoiceId));}"/>
>         </row-actions>
>
>         <field name="invoiceId" widget-style="buttontext">
>
>