Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
3961 Weergaven

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
Annuleer

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

Auteur Beste antwoord

Do you have any example?
Regards

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
mei 19
4056
1
jun. 17
3479
1
feb. 25
1409
0
nov. 24
1260
1
jun. 24
1560