跳至内容
菜单
此问题已终结
2 回复
4044 查看

I want to add an extra column to the payment receipt print out where it shows the details of invoices paid to.

Since most of our customers pay in multiple payments overtime to multiple invoices, they keep getting confused sometimes. I am unable to attach one to show what i mean clearly.

I want to add an extra column between paid total and balance that would show the exact amount that went to the invoice from the current payment. Not just sum of all payments.


形象
丢弃
最佳答案

Hi,

For inheriting and adding new fields to the qweb reports you can have a look at this blog: Inheriting and modifying QWeb reports

Thanks

形象
丢弃
编写者 最佳答案

so after much messing around i am able to get those payment values by doing this on the qweb report. 

<t t-foreach="o.move_line_ids" t-as="mv">

    <t t-foreach="mv.matched_debit_ids" t-as="dbx">

      <span t-esc="dbx.amount" />

now i need some help to match those to the invoice_ids on the payment.. ??

形象
丢弃
相关帖文 回复 查看 活动
0
1月 20
2585
1
6月 23
8388
2
3月 21
8446
0
5月 19
6339
0
4月 19
3100