Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2783 Переглядів

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.

Аватар
Відмінити

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

Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
лют. 21
2344
1
лип. 25
823
2
лип. 25
940
1
лип. 25
1999
3
квіт. 25
2012