Aos_line_item_groups_name Repeat Content Problem

When adding the $aos_line_item_groups_name variable i get the table correct but if i have two Groups at my quote then the PDF is messed up.

For example if i have the following at my template …

  1. Heading 1
  2. some text
  3. Table with Groups
  4. content
  5. Price
  6. date

With 2 Groups Everything from 3 and down will be generated two times and i have a pdf like this

  1. Heading 1
  2. some text
  3. Table with Groups 1
  4. content
  5. Price
  6. date
  7. Table with Groups 2
  8. content
  9. Price
  10. date

How can i fix this ??

thanks

The PDF is being generated from modules/AOS_PDF_Templates/generatePdf.php so in order to achieve what you are looking to do, first copy the file to custom path and also change the entryPoint for generatePDF so that i points to the custom file, then you can add your changes to the file as you like.