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

Hello everyone,

I am using Odoo 12 and have the need to write a JavaScript function on Odoo point of sale, that allows me to make a list of all taxes included on the pos order lines.

I need to show, tax name and tax description for every pos order line (cannot show duplicate taxes).

For instance (pos order lines):

  • Product 1: Tax A;
  • Product 2: Tax B;
  • Product 3: Tax A + B;
  • Product 4: Tax A;

In this example, I have 4 product lines and used 2 taxes (A and B).

The list of taxes should only show one line for each tax.

For instance:

INCLUDED TAXES:

-Tax A name: Tax A description

-Tax B name: Tax B description


Can anyone help me write this JS function? I lack of JS knowledge to do it myself.

I know how to add it to receipt and just need the JavaScript function.

Thank you all in advance

Best regards

PM

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أغسطس 23
2937
1
أغسطس 25
316
1
أبريل 24
2046
2
مايو 24
7289
0
يوليو 21
312