DocMerge - Quotes module - How to handle comment line with quoted line items


I am wondering how to handle Quotes template using DocMerge.

On the definition screen, you can organize your quote details with group (bundle), quoted line items and comments.

My problem is that I don't know how to manage the comments and display them in the correct position according to the quote definition.

Any sample template is welcome.