Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
2749 Vues

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
Ignorer

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

Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
0
févr. 21
2289
1
juil. 25
718
2
juil. 25
814
1
juil. 25
1895
3
avr. 25
1909