Informizely customer feedback surveys




Se de seneste forbedringer




What is the first Handle in OrderLine_CreateFromData

0
What is the first Handle in OrderLine_CreateFromData?

I am stuck with the API. I want to use OrderLine_CreateFromData

I have created the first order line with OrderLiube_Create sucessfully, but the next step gives me error.

$client->OrderLine_CreateFromData(array(
                                                        'Handle' => $orderlineHandle,
                                                        'Id' => $newOrderHandle->Id,   
                                                        'Number' => 1,
                                                        'OrderHandle' => $newOrderHandle,    
                                                        'Description' => 'Test Trans',                
                                                        'DeliveryDate' => date('Y-m-d\THis'),
                                                        'ProductHandle' => $productHandle,
                                                        'Quantity' => 2,
                                                        'UnitNetPrice' => 2,
                                                        'UnitNetPrice' => 200,
                                                        'DiscountAsPercent' => 0,
                                                        'UnitCostPrice' => 150,
                                                        'TotalNetAmount' => 200,
                                                        'TotalMargin' => 0,
                                                        'MarginAsPercent' => 0
                                                    ))->OrderLine_CreateFromDataResult;

 

What could make the error?
i Spørgsmål » Andet af (250 points)
status opdateret af 🔒

1 Svar

Hey Donslund

Thank you for your question, For you to get the right answer to this, please write on our API forum instead or directly to our API-team on api@e-conomic.com, here you can get the help you need.

Have a nice day smiley


<p>     Med venlig hilsen</p> <p>     <strong>Camilla Jesswein</strong></p> <p>     <li>     <strong><img alt="" src=" style="width: 200px; height: 49px; " /></strong></p> <p> Sidder du af og til og er i tvivl om, hvordan du skal bogføre? <a href="http://forum.e-conomic.dk/bogfoeringshjaelp/"><strong> - Klik her og spørg tusindvis af andre e-conomic brugere</strong></a><br />     &nbsp;</p> <ul>     <li>         <a href="http://www.e-conomic.dk/support">e-conomic support</a>&nbsp;- &nbsp;Din vej til vores support</li>     <li>         <a href="http://wiki.e-conomic.dk/">e-copedia</a>&nbsp;- Opslagsværk om e-conomic</li>     <li>         <a href="http://blog.e-conomic.dk/">e-conomic blog</a>&nbsp;- Hold dig opdateret</li> </ul>
Spørgsmål af 🔒 (29.9k points)