Gives me an error: SOAP-ERROR: Encoding: object has no 'Number' property
$bookinvoice = $client->CurrentInvoiceLine_CreateFromDataArray(
'CurrentInvoiceLineData' => array (
'Handle' => array('Id' => $invoiceId), // user's unique ID
'Number' => 1, // Is it invoice ID???
'DeliveryDate' => date("c"),
'Quantity' => 1.00,
'UnitNetPrice' => $project->goal,
'DiscountAsPercent' => 0.00,
'TotalNetAmount' => $project->goal,
'TotalMargin' => 20.00, //
'MarginAsPercent' => $marginaspercent
I have (from function CurrentInvoice_CreateFromDataArray)
$invoiceId = $createinvoice->CurrentInvoiceHandle->Id;
QUESTION: where in this code for CurrentInvoiceLine_CreateFromDataArray abowe my $invoiceId ?
Why I am receiving SOAP-ERROR: Encoding: object has no 'Number' property?
But I added all fields which are required according to this documentation
(including Number, which received from function CurrentInvoice_CreateFromDataArray)
MinOccurs means required, is that correct?
Maybe I am using wrong documentation? Do you think you could could
provide me link to correct version of documentation?