Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2675 Widoki

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.

Awatar
Odrzuć

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

Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lut 21
2209
1
lip 25
547
2
lip 25
694
1
lip 25
1747
3
kwi 25
1772