Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2660 Zobrazení

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
Zrušit

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

Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
úno 21
2200
1
čvc 25
510
2
čvc 25
665
1
čvc 25
1727
3
dub 25
1749