Create an ODT or ODS document template: Difference between revisions

Line 91: Line 91:


===Lines of object===
===Lines of object===
This is how to use arrays for lines of objects (invoices, commercial proposal, orders, etc...). You must create your array in the document and fill it with following tags:
This is how to use arrays for lines of objects (invoices, commercial proposal, orders, etc...). You must create your array in the document and use a begin and end tag to define a line of the array. The line will then be repeated as much as required during generation.
<pre>
[!-- BEGIN row.lines --]
...
[!-- END row.lines --]
</pre>
Then, you can use following tags into your line:
<pre>
<pre>
[!-- BEGIN row.lines --]
[!-- BEGIN row.lines --]