We have a list of documents attached to customer invoice and when the invoice is printed, we would like to t the invoice and all the attached documents should get printed after the invoice as annexures (in a certain sequence).We have configured reporting rule for this with the following parameters:

However, the output is a little random. sometimes the annexures get printed after the invoice, but there are times when half the annexures come before the report, and half of them after. The need is multiple documents getting printed after the report as annexures. Can someone provide help here.