تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4073 أدوات العرض

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
يناير 20
2621
1
يونيو 23
8432
2
مارس 21
8488
0
مايو 19
6399
0
أبريل 19
3148