Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3848 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 19
3957
1
มิ.ย. 17
3381
1
ก.พ. 25
1232
0
พ.ย. 24
1168
1
มิ.ย. 24
1409