Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Update the orderItemIdQty Def #1147

Merged
merged 1 commit into from
May 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ <h5><a name="sales_order_invoice.create-RequestExampleSOAPV1"></a>Request Exampl
$result = $client-&gt;call(
$session,
'sales_order_invoice.create',
array('orderIncrementId' =&gt; '200000008', array('order_item_id' =&gt; '15', 'qty' =&gt; '1'))
array('orderIncrementId' =&gt; '200000008', array('15' =&gt; '1', '16' =&gt; '1'))
// orderItemIdQty Array is Keyed with Order Item ID, with Value of qty to invoice
);
var_dump ($result);

Expand All @@ -139,9 +140,10 @@ <h5><a name="sales_order_invoice.create-RequestExampleSOAPV2"></a>Request Exampl
$sessionId = $proxy-&gt;login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

//Create invoice for order
$qty = array(
    array('order_item_id' =&gt; '15', 'qty' =&gt; '1')
);

// orderItemIdQty Array is Keyed with Order Item ID, with Value of qty to invoice
$qty = array('15' =&gt; '1', '16' =&gt; '1');

$invoiceIncrementId = $proxy-&gt;salesOrderInvoiceCreate(
$sessionID,
'200000008',
Expand All @@ -162,7 +164,7 @@ <h5><a name="sales_order_invoice.create-RequestExampleSOAPV2%28WSIComplianceMode

$sessionId = $proxy-&gt;login((object)array('username' =&gt; 'apiUser', 'apiKey' =&gt; 'apiKey'));

$result = $proxy-&gt;salesOrderInvoiceCreate((object)array('sessionId' =&gt; $sessionId-&gt;result, 'orderIncrementId' =&gt; '200000008', 'itemsQty' =&gt; array('order_item_id' =&gt; 15, 'qty' =&gt; '1'), 'comment' =&gt; null,
$result = $proxy-&gt;salesOrderInvoiceCreate((object)array('sessionId' =&gt; $sessionId-&gt;result, 'orderIncrementId' =&gt; '200000008', 'itemsQty' =&gt; array('15' =&gt; '1', '16' =&gt; '1'), 'comment' =&gt; null,
'email' =&gt; null,
'includeComment' =&gt; null
));
Expand Down