Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2772 Ansichten

Hello, I manage to create invoices with the API without any problem. The total is correct but the amount due (residual field) remains at 0 € and I cannot find how to make it take the total amount.


Thank you.

Avatar
Verwerfen

Can you share the solution with us please , i'm stuck with the same issue

Beste Antwort

Hello,
I was looking at the beginning to modify the status of the invoice directly by updating the status field (I no longer have its name in mind). I finally used the following line in PHP to achieve this:
$models->execute_kw($this->base, $uid, $this->pass, 'account.invoice', 'action_invoice_open', array($result["invoice"]));

Everything is calculated correctly then

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Feb. 21
2342
1
Juli 25
797
2
Juli 25
900
1
Juli 25
1964
3
Apr. 25
1990