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

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.

相關帖文 回覆 瀏覽次數 活動
0
3月 15
3752
0
2月 20
4421
0
12月 19
3579
1
7月 19
7866
0
5月 24
1205