Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4183 Visualizzazioni

Hi,

I'm trying to change the payment status of an Invoice with the PHP API.

I'd like to change it from Open to Paid, but it seems that it's not working as expected. Instead of this it appears:

  • Status: Paid  Open

I'm using this code in order to do it:

$salida = $models->execute_kw($db, $uid, $password, 'account.invoice', 'write',
array(array($item['id']), array('state'=>"paid")));
Am I doing something wrong?

Best regards
Avatar
Abbandona

To make invoice in paid state you need to call the method of button "register payment" and pass required values .

Autore Risposta migliore

Do you have any example?
Regards

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mag 19
4244
1
giu 17
3692
1
feb 25
1658
0
nov 24
1454
1
giu 24
1732