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/07/30 17:54:58 UTC

svn commit: r681096 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java

Author: hansbak
Date: Wed Jul 30 08:54:58 2008
New Revision: 681096

URL: http://svn.apache.org/viewvc?rev=681096&view=rev
Log:
compiler error showing only in java 1.6 fixed now

Modified:
    ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java

Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java?rev=681096&r1=681095&r2=681096&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java Wed Jul 30 08:54:58 2008
@@ -1770,7 +1770,8 @@
                 }
                 
                 // create the invoice item for this shipment receipt
-                input = UtilMisc.toMap("invoiceId", invoiceId, "invoiceItemTypeId", invoiceItemTypeId, "quantity", quantity);
+                input = UtilMisc.toMap("invoiceId", invoiceId, "invoiceItemTypeId", invoiceItemTypeId);
+                input.put("quantity", quantity);
                 input.put("invoiceItemSeqId", "" + invoiceItemSeqId); // turn the int into a string with ("" + int) hack
                 input.put("amount", returnItem.get("returnPrice")); // this service requires Double
                 input.put("productId", returnItem.get("productId"));



Re: svn commit: r681096 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java

Posted by Jacques Le Roux <ja...@les7arts.com>.
Hi Hans,

This is weird, isn'it . Why do you think this happens ? Have you an idea ? What was the error message exactly ?

Thanks

Jacques

> Author: hansbak
> Date: Wed Jul 30 08:54:58 2008
> New Revision: 681096
>
> URL: http://svn.apache.org/viewvc?rev=681096&view=rev
> Log:
> compiler error showing only in java 1.6 fixed now
>
> Modified:
>    ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
>
> Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
> URL: 
> http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java?rev=681096&r1=681095&r2=681096&view=diff
> ==============================================================================
> --- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java (original)
> +++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java Wed Jul 30 08:54:58 2008
> @@ -1770,7 +1770,8 @@
>                 }
>
>                 // create the invoice item for this shipment receipt
> -                input = UtilMisc.toMap("invoiceId", invoiceId, "invoiceItemTypeId", invoiceItemTypeId, "quantity", quantity);
> +                input = UtilMisc.toMap("invoiceId", invoiceId, "invoiceItemTypeId", invoiceItemTypeId);
> +                input.put("quantity", quantity);
>                 input.put("invoiceItemSeqId", "" + invoiceItemSeqId); // turn the int into a string with ("" + int) hack
>                 input.put("amount", returnItem.get("returnPrice")); // this service requires Double
>                 input.put("productId", returnItem.get("productId"));
>
>