跳至內容
選單
此問題已被標幟
2 回覆
4049 瀏覽次數

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
4120
1
6月 17
3552
1
2月 25
1509
0
11月 24
1354
1
6月 24
1646