From a8c61b0b47ac69d72e73c4120342f651bf967f06 Mon Sep 17 00:00:00 2001 From: Geoff Douglas Date: Mon, 8 May 2017 22:06:03 -0600 Subject: [PATCH] Update the orderItemIdQty Def orderItemIdQty Array is Keyed with Order Item ID, with Value of qty to invoice See: Mage_Sales_Model_Service_Order::prepareInvoice() --- .../sales_order_invoice.create.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/guides/m1x/api/soap/sales/salesOrderInvoice/sales_order_invoice.create.html b/guides/m1x/api/soap/sales/salesOrderInvoice/sales_order_invoice.create.html index c05af0ce787..fc187586573 100644 --- a/guides/m1x/api/soap/sales/salesOrderInvoice/sales_order_invoice.create.html +++ b/guides/m1x/api/soap/sales/salesOrderInvoice/sales_order_invoice.create.html @@ -122,7 +122,8 @@
Request Exampl $result = $client->call( $session, 'sales_order_invoice.create', - array('orderIncrementId' => '200000008', array('order_item_id' => '15', 'qty' => '1')) + array('orderIncrementId' => '200000008', array('15' => '1', '16' => '1')) + // orderItemIdQty Array is Keyed with Order Item ID, with Value of qty to invoice ); var_dump ($result); @@ -139,9 +140,10 @@
Request Exampl $sessionId = $proxy->login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary //Create invoice for order -$qty = array( -    array('order_item_id' => '15', 'qty' => '1') -); + +// orderItemIdQty Array is Keyed with Order Item ID, with Value of qty to invoice +$qty = array('15' => '1', '16' => '1'); + $invoiceIncrementId = $proxy->salesOrderInvoiceCreate( $sessionID, '200000008', @@ -162,7 +164,7 @@