Forum


Replies: 1   Views: 200
Invoice with subtotals after page break
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by makeinvoices  · 29-04-2019 - 15:30

Hello,

we are considering to build a new print solution for our ERP based on phpdocx and so far it does look very promising, as it seems to provide all required features. There is just one open question: Is it possible to generate an invoice from a template, which has a table of positions with

  • an arbitrary number of rows,
  • a variable number of rows per page, determined by how many rows can fit the page before a page break would occur, and
  • after each page break: a table row containing the subtotal of all previously listed positions.

The first two are easily achievable with replaceTableVariable and the proper table style, but I'm not sure how one would go about the third one. If you have a clean solution to this, we will probably get a premium license within the week, so I hope you can give us some pointers even though we currently do not have a license.

Best regards,

T.D.