Why table of CurrentInvoiceLine is null

Forum for .PHP developers using the E-conomic API.
Exchange your ideas, tip and tricks using the API.
Best Practices

Why table of CurrentInvoiceLine is null

Postby china li » Tue Nov 15, 2011 7:58 am

Hi,

I create a table CurrentInvoiceLine, and make the product is 1.But the other box is null ,why? THis is my code.
$newCurrentInvoiceLineHandle = $client->CurrentInvoiceLine_Create(array(
'invoiceHandle' => $newCurrentInvoiceHandle))->CurrentInvoiceLine_CreateResult;

$productHandles = $client->product_GetAll()->Product_GetAllResult->ProductHandle;
$firstProduct = $productHandles[0];

$client->CurrentInvoiceLine_SetProduct(array(
'currentInvoiceLineHandle' => $newCurrentInvoiceLineHandle,
'valueHandle' => $firstProduct ));

thanks!
-
china li
 
Posts: 5
Joined: Mon Apr 18, 2011 5:10 am

Return to PHP



cron