コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4029 ビュー

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
アバター
破棄

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

著作者 最善の回答

Do you have any example?
Regards

アバター
破棄
関連投稿 返信 ビュー 活動
0
5月 19
4110
1
6月 17
3536
1
2月 25
1493
0
11月 24
1334
1
6月 24
1617