New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REST API not possible to add invoice lines #6811
Comments
Yes. You need to create invoice lines as the same time as the invoice header. Here, a working example : invoice = { |
Hi tried to play a little with that. Good, seems to work. But it works only if I remove the line can you explain what is the "statut : 1" parameter please ? |
Draft / Validated |
ok, so not a bug then. |
Bug
I can add an invoice with the REST api but can't add line to the invoice. no addline method seem to be present.
Environment
Expected and actual behavior
With orders, I can add lines usi the REST api. With invoices, I can't. Function postline seems to be missing in api_invoices.class.php
Also, not possible to convert an order in invoice. (or create invoice from order)
The text was updated successfully, but these errors were encountered: