Author: bibryam
Date: Thu Oct 29 00:57:31 2009
New Revision: 830814
URL:
http://svn.apache.org/viewvc?rev=830814&view=revLog:
Removed the extra invoiceTypeId parameter from createInvoiceForOrderAllItems service result.
Reported by Cimballi in
https://issues.apache.org/jira/browse/OFBIZ-3010Modified:
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=830814&r1=830813&r2=830814&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 Thu Oct 29 00:57:31 2009
@@ -124,7 +124,9 @@
context.put("userLogin", userLogin);
}
- return dispatcher.runSync("createInvoiceForOrder", context);
+ Map<String, Object> result = dispatcher.runSync("createInvoiceForOrder", context);
+ result.remove("invoiceTypeId"); //remove extra parameter
+ return result;
}
catch (GenericServiceException e) {
String errMsg = UtilProperties.getMessage(resource,"AccountingEntityDataProblemCreatingInvoiceFromOrderItems",UtilMisc.toMap("reason",e.toString()),(Locale) context.get("locale"));