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

How can I get amount due of a partner using credit and debit?

อวตาร
ละทิ้ง

In enterprise or community?

คำตอบที่ดีที่สุด

Hi,

In the res.partner model by default you have two fields credit and debit which compute the Total Receivable and Payable of the partner. 

Either you can use those fields as such or refer the compute function of those fields. Function name _credit_debit_get in res.partner model.

You  can see it in this path: https://github.com/odoo/odoo/blob/12.0/addons/account/models/partner.py

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

Thanks a lot for this info.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
3755
0
ก.พ. 20
4421
0
ธ.ค. 19
3580
1
ก.ค. 19
7868
0
พ.ค. 24
1207