<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://uat.community.rws.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Template structure</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4959/template-structure</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12 Non-Production</generator><item><title>Template structure</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4959/template-structure</link><pubDate>Mon, 09 Dec 2019 06:59:35 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:14417463-b8a9-4254-857b-630580c6524a</guid><dc:creator>Eugene Kuchynski</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4959/template-structure#comments</comments><description>Current Revision posted to Wiki by Eugene Kuchynski on 12/9/2019 6:59:35 AM&lt;br /&gt;
&lt;p&gt;When you select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the invoice list, you see composed template.&lt;/p&gt;
&lt;p&gt;In most cases, it contains a header, followed by invoice rows, followed by summaries and additional information. Information about selected invoices (or one invoice) comes to report generation system from a database. This system processes this data and displays in the form, which is ready to be printed or saved into file. To correctly display this data, a specific template structure is required. This structure is created on the designer surface. The whole structure consist of a number of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;bands&lt;/strong&gt;, which are printed in a certain order necessary amount of times.&lt;/p&gt;
&lt;p&gt;Here is how empty report looks like:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/5282.image-_2800_11_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It contains the following bands:&lt;/p&gt;
&lt;div class="p"&gt;
&lt;ul id="GUID-356AF3CE-3C8F-4D6B-AB8A-9C63D3827991__UL_0A5DDE2CD3C54F928829FF5256D240A0"&gt;
&lt;li id="GUID-356AF3CE-3C8F-4D6B-AB8A-9C63D3827991__LI_6597977109174B678DA18FDC087A611D"&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Detail&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band, which is printed for every record in a data source (i.e., for each invoice you selected in invoice list). Every template&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;should&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;have the Detail band, and you cannot delete it.&lt;/li&gt;
&lt;li id="GUID-356AF3CE-3C8F-4D6B-AB8A-9C63D3827991__LI_CBDD981302DA4B0FA5DCBACC7DA6179B"&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Top Margin&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Bottom Margin&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;bands. These bands are repeated once on every document page. You also cannot delete them, but can make them invisible by decreasing height to zero.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;You can also add the following bands:&lt;/p&gt;
&lt;div class="tablenoborder"&gt;
&lt;table id="GUID-356AF3CE-3C8F-4D6B-AB8A-9C63D3827991__TABLE_54CB13A62223410D910462B2B28AC86F" border="1" cellpadding="4" cellspacing="0" frame="border" rules="all" summary=""&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Report header and report footer&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;The Report Header is the report&amp;#39;s first band (margins are &amp;quot;out-of-page&amp;quot; zones).&lt;/p&gt;
&lt;p&gt;The Report Footer is placed before the Page Footer and Bottom Margin on the report&amp;#39;s last page.&lt;/p&gt;
&lt;p&gt;Usually these bands are not used in invoice/quote templates, as it makes no sense to print some header or footer for a batch of invoices.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Group header and group footer&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;These bands are above and below each group. The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Group and Sort Panel&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;creates these bands automatically. For example, each invoice may contain multiple jobs, and each job, in its turn, may contain multiple tasks. In this case, job can be presented as a group, and you may display some totals for each job. While designing the template or report, you&amp;#39;re free to create groups (for example, by currency in custom reports), and use group headers and footers per current task.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Detail&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Displayed once per data row. If you print multiple invoices, it will be printed once per each invoice. Thus, this is ideal band type to display invoice header.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Page header and page footer&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;These bands are at the top and bottom of every page in a report. They display information that should be printed on every page (for example, logo or number of pages).&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Sub-band&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Very interesting type of band. It may contain some logically separated kind of information. You can apply special rules to display or hide this band. for example, invoice may contain tax or may not contain tax. You can put tax amounts into sub-band and print it depending of the tax selection.&lt;/p&gt;
&lt;p&gt;Another example: if tax in invoice is not selected, than you may have a special sub-band where a text explaining absence of taxes will be displayed.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Detail report&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Used when you need to display internal table (multiple rows). For example, after invoice header, which is printed once, a number of rows are printed. To correctly display them, you have to add Detail report inside Detail band.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Here is graphical representation of this structure:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351583690v2.png" /&gt;&lt;/p&gt;
&lt;h3 class="ui-topic-title" title="Expanding/collapsing bands"&gt;Expanding/collapsing bands&lt;/h3&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;You can collapse bands which are not currently needed, to free-up some space and concentrate in a band you&amp;#39;re currently working with.&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351640419v3.png" /&gt;&lt;/div&gt;
&lt;h3 class="ui-topic-title" title="Expanding/collapsing bands"&gt;Adding bands&lt;/h3&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span id="GUID-C588C27B-F0C7-4339-B4E2-75335F68EE4B__GUID-E1C5B3CB-F7EC-4FF7-A09D-2BBCDB2CC034"&gt;To add a band, right-click a report&amp;#39;s design surface and choose&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="uicontrol"&gt;Insert Band&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the invoked context menu.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351677612v4.png" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span&gt;You can insert the&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Detail Report&lt;/strong&gt;&lt;span&gt;&amp;nbsp;band to display nested table contents. For invoices, nested tables are:&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Rows to print&lt;/strong&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice details&lt;/strong&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment method list&lt;/strong&gt;&lt;span&gt;, etc. (these properties in the field list have corresponding &amp;#39;table&amp;#39; icon).&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;strong&gt;Detail report&lt;/strong&gt;&lt;span&gt;&amp;nbsp;bands, in its turn, also may have headers and footers.&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span&gt;Accessing the Bands Collection&lt;br /&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span class="uicontrol"&gt;Edit and Reorder Bands&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;context link in a report&amp;#39;s smart tag to access the report&amp;#39;s bands collection. It may be useful to reorder bands, or manage them from a centralized place.&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351718077v5.png" /&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;
&lt;div class="ui-topic-title" title="Template source data and invoice structure"&gt;Template source data and invoice structure&lt;/div&gt;
&lt;div id="lcDocXFormsHeader"&gt;
&lt;div class="top_nav_bar_inner_right_group " id="top_nav_bar_comments"&gt;
&lt;div class="ui-btn img-btn top_nav_bar_inner_right_btn" title="Show"&gt;&lt;/div&gt;
&lt;div class="ui-btn img-btn top_nav_bar_inner_right_btn" title="Show"&gt;
&lt;div class="preview_area_wrapper"&gt;
&lt;div class="preview_area"&gt;
&lt;div class="nested0" id="GUID-0175A4DE-C2BE-4520-9D1B-7F06301572EC"&gt;
&lt;div&gt;
&lt;p&gt;Using the Field list panel, as it was written in the previous article, you get access to template source data.&lt;/p&gt;
&lt;p&gt;Each source represents one table from the database. Amount of rows in that table depends on the quantity of selected invoices (quotes, purchase orders, etc.) to be printed. To access application settings and user data, each table usually has&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;User&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property, which provides access to this information.&lt;/p&gt;
&lt;p&gt;Invoice structure usually contains one header, multiple rows, summary, optional information about taxes, optional notes, and a footer. Depending on the order and optionally displayed information, you select structure of the template.&lt;/p&gt;
&lt;p&gt;For example, invoice header (Detail bans) usually contains user&amp;#39;s and customer&amp;#39;s data, invoice number and date, logo, etc. This band is followed by Detail report linked with &amp;#39;&lt;em&gt;Rows to print&lt;/em&gt;&amp;#39; table, which contains invoice rows.&lt;/p&gt;
&lt;p&gt;As you already know, some kind of bands are displayed only once, while others are intended to display arrays of information. Let&amp;#39;s examine&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;default invoice template v1&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;It begins with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;Detail&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band, where we put such details as invoice number, term, customer data, information about issuer. This band will be printed once per each printed invoice. Open helper menu and check&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="uicontrol"&gt;Page break&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351760890v6.png" /&gt;&lt;/p&gt;
&lt;p&gt;This property signals to insert page break before each invoice header, except the first one. Thus, each invoices will be printed from the first page.&lt;/p&gt;
&lt;p&gt;Second band is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows (detail report)&lt;/strong&gt;. If to open helper menu for this band, you will see that its data member is set to Rows to print. This table is generated dynamically: it contains all tasks or receivables from linked translation jobs. Let&amp;#39;s repeat: invoice may be linked with multiple jobs, and each job may contain multiple rows in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tasks&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;or&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Receivables&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tables. When&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Receivables&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table has at least one row. Rows to print table will be filled with data from&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Receivables&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table. Otherwise, it will use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Job tasks&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table. This approach allows you to control what you want to see in invoice: all tasks (all fuzzy types), or some single row which shows average volume and price. Then you build custom invoice template, you may bind&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice details&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Rows to print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table (for example, if you wish to print only totals per each job, without detailed job contents).&lt;/p&gt;
&lt;p&gt;So,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;detail report will be printed as many times as a number of rows in the invoice.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;is grouped by job:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/6864.image-_2800_12_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For each group, template has group footer, which displays job notes and horizontal line. Sub-band with job notes is &lt;a href="/product-groups/translationproductivity/sdl-baccs/w/wiki/4962/formatting-rules"&gt;conditionally hidden&lt;/a&gt;, if job does not contain notes. Second sub-band contains only horizontal row to separate jobs in template. This band is always printed (that is why it is separated from sub-band with notes).&lt;/p&gt;
&lt;p&gt;Underlining,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;section contains&amp;nbsp;&lt;strong&gt;InvoiceRow&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band, which lists all tasks of the job linked with an invoice row.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band has a report footer with total amount and notes. This footer is split to a number of sub-bands. This is done to be able to conditionally hide these sub-bands. For example, when&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tax2&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;is not selected in an invoice, corresponding sub-band would not be printed. To achieve this, Formatting rules feature is used.&lt;/p&gt;
&lt;p&gt;After&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;detail report, another detail report is placed -&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment methods&lt;/strong&gt;. It will display accepted payment methods. In the header of this nested report we&amp;#39;ve put description text, which will be hidden if no any accepted payment methods were selected in a printed invoice. Again, this is achieved with the help of&amp;nbsp;&lt;strong&gt;Formatting rules&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Detail report linked with accepted payment methods also demonstrates interesting property: it will be printed not only in the down direction, but in the right too. This is specified via helper menu, using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Multi-column mode&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Column count&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;properties. This feature allows to save some paper space and print 2 (in this example) payment methods in 1 row.&lt;/p&gt;
&lt;div&gt;&lt;span&gt;Here is an image demonstrating a structure of default invoice template:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;img alt=" " src="/resized-image/__size/900x336/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351830304v8.png" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;img alt=" " src="/resized-image/__size/900x412/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351830304v9.png" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;Does it all sound too complex? Maybe, a bit. Different people has absolutely different requirements to invoice templates. This leads to a increased complexity at start. Bands, especially detail reports, may force you to think that it is way to difficult to create own template. Don&amp;#39;t think that. Instead, try to play a bit with the designer, analyze field list, understand referenced properties and tables. Invoice in the field list is a table, which requires detail report. This detail report is the whole template itself. If you need to print table property from the field list (Invoice details, Payment methods), than you must create detail report. Additional complexity is added due to two detail reports linked with Invoice details (one for rows with empty job, another for rows with selected job). This is done because SDL&amp;nbsp;Trados Business Manager&amp;nbsp;allows to create invoices in two ways - with linking with jobs and without linking. When invoice row is linked with the job, we use one way of printing (displaying information from the list of task of the selected job). When job is not selected, we use another way of printing (simply displaying price, quantity and amount from the invoice row).&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: templates, designer, custom reports&lt;/div&gt;
</description></item><item><title>Template structure</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4959/template-structure/revision/2</link><pubDate>Wed, 17 Jul 2019 12:46:58 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:14417463-b8a9-4254-857b-630580c6524a</guid><dc:creator>Eugene Kuchynski</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4959/template-structure#comments</comments><description>Revision 2 posted to Wiki by Eugene Kuchynski on 7/17/2019 12:46:58 PM&lt;br /&gt;
&lt;p&gt;When you select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the invoice list, you see composed template.&lt;/p&gt;
&lt;p&gt;In most cases, it contains a header, followed by invoice rows, followed by summaries and additional information. Information about selected invoices (or one invoice) comes to report generation system from a database. This system processes this data and displays in the form, which is ready to be printed or saved into file. To correctly display this data, a specific template structure is required. This structure is created on the designer surface. The whole structure consist of a number of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;bands&lt;/strong&gt;, which are printed in a certain order necessary amount of times.&lt;/p&gt;
&lt;p&gt;Here is how empty report looks like:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/5282.image-_2800_11_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It contains the following bands:&lt;/p&gt;
&lt;div class="p"&gt;
&lt;ul id="GUID-356AF3CE-3C8F-4D6B-AB8A-9C63D3827991__UL_0A5DDE2CD3C54F928829FF5256D240A0"&gt;
&lt;li id="GUID-356AF3CE-3C8F-4D6B-AB8A-9C63D3827991__LI_6597977109174B678DA18FDC087A611D"&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Detail&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band, which is printed for every record in a data source (i.e., for each invoice you selected in invoice list). Every template&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;should&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;have the Detail band, and you cannot delete it.&lt;/li&gt;
&lt;li id="GUID-356AF3CE-3C8F-4D6B-AB8A-9C63D3827991__LI_CBDD981302DA4B0FA5DCBACC7DA6179B"&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Top Margin&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Bottom Margin&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;bands. These bands are repeated once on every document page. You also cannot delete them, but can make them invisible by decreasing height to zero.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;You can also add the following bands:&lt;/p&gt;
&lt;div class="tablenoborder"&gt;
&lt;table id="GUID-356AF3CE-3C8F-4D6B-AB8A-9C63D3827991__TABLE_54CB13A62223410D910462B2B28AC86F" border="1" cellpadding="4" cellspacing="0" frame="border" rules="all" summary=""&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Report header and report footer&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;The Report Header is the report&amp;#39;s first band (margins are &amp;quot;out-of-page&amp;quot; zones).&lt;/p&gt;
&lt;p&gt;The Report Footer is placed before the Page Footer and Bottom Margin on the report&amp;#39;s last page.&lt;/p&gt;
&lt;p&gt;Usually these bands are not used in invoice/quote templates, as it makes no sense to print some header or footer for a batch of invoices.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Group header and group footer&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;These bands are above and below each group. The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Group and Sort Panel&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;creates these bands automatically. For example, each invoice may contain multiple jobs, and each job, in its turn, may contain multiple tasks. In this case, job can be presented as a group, and you may display some totals for each job. While designing the template or report, you&amp;#39;re free to create groups (for example, by currency in custom reports), and use group headers and footers per current task.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Detail&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Displayed once per data row. If you print multiple invoices, it will be printed once per each invoice. Thus, this is ideal band type to display invoice header.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Page header and page footer&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;These bands are at the top and bottom of every page in a report. They display information that should be printed on every page (for example, logo or number of pages).&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Sub-band&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Very interesting type of band. It may contain some logically separated kind of information. You can apply special rules to display or hide this band. for example, invoice may contain tax or may not contain tax. You can put tax amounts into sub-band and print it depending of the tax selection.&lt;/p&gt;
&lt;p&gt;Another example: if tax in invoice is not selected, than you may have a special sub-band where a text explaining absence of taxes will be displayed.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Detail report&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Used when you need to display internal table (multiple rows). For example, after invoice header, which is printed once, a number of rows are printed. To correctly display them, you have to add Detail report inside Detail band.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Here is graphical representation of this structure:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351583690v2.png" /&gt;&lt;/p&gt;
&lt;h3 class="ui-topic-title" title="Expanding/collapsing bands"&gt;Expanding/collapsing bands&lt;/h3&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;You can collapse bands which are not currently needed, to free-up some space and concentrate in a band you&amp;#39;re currently working with.&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351640419v3.png" /&gt;&lt;/div&gt;
&lt;h3 class="ui-topic-title" title="Expanding/collapsing bands"&gt;Adding bands&lt;/h3&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span id="GUID-C588C27B-F0C7-4339-B4E2-75335F68EE4B__GUID-E1C5B3CB-F7EC-4FF7-A09D-2BBCDB2CC034"&gt;To add a band, right-click a report&amp;#39;s design surface and choose&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="uicontrol"&gt;Insert Band&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the invoked context menu.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351677612v4.png" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span&gt;You can insert the&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Detail Report&lt;/strong&gt;&lt;span&gt;&amp;nbsp;band to display nested table contents. For invoices, nested tables are:&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Rows to print&lt;/strong&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice details&lt;/strong&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment method list&lt;/strong&gt;&lt;span&gt;, etc. (these properties in the field list have corresponding &amp;#39;table&amp;#39; icon).&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;strong&gt;Detail report&lt;/strong&gt;&lt;span&gt;&amp;nbsp;bands, in its turn, also may have headers and footers.&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span&gt;Accessing the Bands Collection&lt;br /&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span class="uicontrol"&gt;Edit and Reorder Bands&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;context link in a report&amp;#39;s smart tag to access the report&amp;#39;s bands collection. It may be useful to reorder bands, or manage them from a centralized place.&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351718077v5.png" /&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;
&lt;div class="ui-topic-title" title="Template source data and invoice structure"&gt;Template source data and invoice structure&lt;/div&gt;
&lt;div id="lcDocXFormsHeader"&gt;
&lt;div class="top_nav_bar_inner_right_group " id="top_nav_bar_comments"&gt;
&lt;div class="ui-btn img-btn top_nav_bar_inner_right_btn" title="Show"&gt;&lt;/div&gt;
&lt;div class="ui-btn img-btn top_nav_bar_inner_right_btn" title="Show"&gt;
&lt;div class="preview_area_wrapper"&gt;
&lt;div class="preview_area"&gt;
&lt;div class="nested0" id="GUID-0175A4DE-C2BE-4520-9D1B-7F06301572EC"&gt;
&lt;div&gt;
&lt;p&gt;Using the Field list panel, as it was written in the previous article, you get access to template source data.&lt;/p&gt;
&lt;p&gt;Each source represents one table from the database. Amount of rows in that table depends on the quantity of selected invoices (quotes, purchase orders, etc.) to be printed. To access application settings and user data, each table usually has&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;User&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property, which provides access to this information.&lt;/p&gt;
&lt;p&gt;Invoice structure usually contains one header, multiple rows, summary, optional information about taxes, optional notes, and a footer. Depending on the order and optionally displayed information, you select structure of the template.&lt;/p&gt;
&lt;p&gt;For example, invoice header (Detail bans) usually contains user&amp;#39;s and customer&amp;#39;s data, invoice number and date, logo, etc. This band is followed by Detail report linked with &amp;#39;&lt;em&gt;Rows to print&lt;/em&gt;&amp;#39; table, which contains invoice rows.&lt;/p&gt;
&lt;p&gt;As you already know, some kind of bands are displayed only once, while others are intended to display arrays of information. Let&amp;#39;s examine&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;default invoice template v1&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;It begins with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;Detail&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band, where we put such details as invoice number, term, customer data, information about issuer. This band will be printed once per each printed invoice. Open helper menu and check&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="uicontrol"&gt;Page break&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351760890v6.png" /&gt;&lt;/p&gt;
&lt;p&gt;This property signals to insert page break before each invoice header, except the first one. Thus, each invoices will be printed from the first page.&lt;/p&gt;
&lt;p&gt;Second band is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows (detail report)&lt;/strong&gt;. If to open helper menu for this band, you will see that its data member is set to Rows to print. This table is generated dynamically: it contains all tasks or receivables from linked translation jobs. Let&amp;#39;s repeat: invoice may be linked with multiple jobs, and each job may contain multiple rows in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tasks&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;or&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Receivables&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tables. When&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Receivables&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table has at least one row. Rows to print table will be filled with data from&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Receivables&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table. Otherwise, it will use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Job tasks&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table. This approach allows you to control what you want to see in invoice: all tasks (all fuzzy types), or some single row which shows average volume and price. Then you build custom invoice template, you may bind&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice details&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Rows to print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table (for example, if you wish to print only totals per each job, without detailed job contents).&lt;/p&gt;
&lt;p&gt;So,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;detail report will be printed as many times as a number of rows in the invoice.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;is grouped by job:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/6864.image-_2800_12_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For each group, template has group footer, which displays job notes and horizontal line. Sub-band with job notes is &lt;a href="/product-groups/translationproductivity/sdl-baccs/w/wiki/4962/formatting-rules"&gt;conditionally hidden&lt;/a&gt;, if job does not contain notes. Second sub-band contains only horizontal row to separate jobs in template. This band is always printed (that is why it is separated from sub-band with notes).&lt;/p&gt;
&lt;p&gt;Underlining,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;section contains&amp;nbsp;&lt;strong&gt;InvoiceRow&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band, which lists all tasks of the job linked with an invoice row.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band has a report footer with total amount and notes. This footer is split to a number of sub-bands. This is done to be able to conditionally hide these sub-bands. For example, when&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tax2&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;is not selected in an invoice, corresponding sub-band would not be printed. To achieve this, Formatting rules feature is used.&lt;/p&gt;
&lt;p&gt;After&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;detail report, another detail report is placed -&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment methods&lt;/strong&gt;. It will display accepted payment methods. In the header of this nested report we&amp;#39;ve put description text, which will be hidden if no any accepted payment methods were selected in a printed invoice. Again, this is achieved with the help of&amp;nbsp;&lt;strong&gt;Formatting rules&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Detail report linked with accepted payment methods also demonstrates interesting property: it will be printed not only in the down direction, but in the right too. This is specified via helper menu, using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Multi-column mode&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Column count&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;properties. This feature allows to save some paper space and print 2 (in this example) payment methods in 1 row.&lt;/p&gt;
&lt;div&gt;&lt;span&gt;Here is an image demonstrating a structure of default invoice template:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;img alt=" " src="/resized-image/__size/900x336/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351830304v8.png" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;img alt=" " src="/resized-image/__size/900x412/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351830304v9.png" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p class="rvps2"&gt;&lt;span style="background-color:#ccffcc;"&gt;Does it all sound too complex? Maybe, a bit. Different people has absolutely different requirements to invoice templates. This leads to a increased complexity at start. Bands, especially detail reports, may force you to think that it is way to difficult to create own template. Don&amp;#39;t think that. Instead, try to play a bit with the designer, analyze field list, understand referenced properties and tables. Invoice in the field list is a table, which requires detail report. This detail report is the whole template itself. If you need to print table property from the field list (Invoice details, Payment methods), than you must create detail report. Additional complexity is added due to two detail reports linked with Invoice details (one for rows with empty job, another for rows with selected job). This is done because BaccS allows to create invoices in two ways - with linking with jobs and without linking. When invoice row is linked with the job, we use one way of printing (displaying information from the list of task of the selected job). When job is not selected, we use another way of printing (simply displaying price, quantity and amount from the invoice row).&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: templates, designer, custom reports&lt;/div&gt;
</description></item><item><title>Template structure</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4959/template-structure/revision/1</link><pubDate>Wed, 17 Jul 2019 08:33:18 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:14417463-b8a9-4254-857b-630580c6524a</guid><dc:creator>Eugene Kuchynski</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4959/template-structure#comments</comments><description>Revision 1 posted to Wiki by Eugene Kuchynski on 7/17/2019 8:33:18 AM&lt;br /&gt;
&lt;p&gt;When you select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the invoice list, you see composed template.&lt;/p&gt;
&lt;p&gt;In most cases, it contains a header, followed by invoice rows, followed by summaries and additional information. Information about selected invoices (or one invoice) comes to report generation system from a database. This system processes this data and displays in the form, which is ready to be printed or saved into file. To correctly display this data, a specific template structure is required. This structure is created on the designer surface. The whole structure consist of a number of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;bands&lt;/strong&gt;, which are printed in a certain order necessary amount of times.&lt;/p&gt;
&lt;p&gt;Here is how empty report looks like:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/5282.image-_2800_11_2900_.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It contains the following bands:&lt;/p&gt;
&lt;div class="p"&gt;
&lt;ul id="GUID-356AF3CE-3C8F-4D6B-AB8A-9C63D3827991__UL_0A5DDE2CD3C54F928829FF5256D240A0"&gt;
&lt;li id="GUID-356AF3CE-3C8F-4D6B-AB8A-9C63D3827991__LI_6597977109174B678DA18FDC087A611D"&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Detail&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band, which is printed for every record in a data source (i.e., for each invoice you selected in invoice list). Every template&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;should&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;have the Detail band, and you cannot delete it.&lt;/li&gt;
&lt;li id="GUID-356AF3CE-3C8F-4D6B-AB8A-9C63D3827991__LI_CBDD981302DA4B0FA5DCBACC7DA6179B"&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Top Margin&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Bottom Margin&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;bands. These bands are repeated once on every document page. You also cannot delete them, but can make them invisible by decreasing height to zero.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;You can also add the following bands:&lt;/p&gt;
&lt;div class="tablenoborder"&gt;
&lt;table id="GUID-356AF3CE-3C8F-4D6B-AB8A-9C63D3827991__TABLE_54CB13A62223410D910462B2B28AC86F" border="1" cellpadding="4" cellspacing="0" frame="border" rules="all" summary=""&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Report header and report footer&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;The Report Header is the report&amp;#39;s first band (margins are &amp;quot;out-of-page&amp;quot; zones).&lt;/p&gt;
&lt;p&gt;The Report Footer is placed before the Page Footer and Bottom Margin on the report&amp;#39;s last page.&lt;/p&gt;
&lt;p&gt;Usually these bands are not used in invoice/quote templates, as it makes no sense to print some header or footer for a batch of invoices.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Group header and group footer&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;These bands are above and below each group. The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Group and Sort Panel&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;creates these bands automatically. For example, each invoice may contain multiple jobs, and each job, in its turn, may contain multiple tasks. In this case, job can be presented as a group, and you may display some totals for each job. While designing the template or report, you&amp;#39;re free to create groups (for example, by currency in custom reports), and use group headers and footers per current task.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Detail&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Displayed once per data row. If you print multiple invoices, it will be printed once per each invoice. Thus, this is ideal band type to display invoice header.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Page header and page footer&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;These bands are at the top and bottom of every page in a report. They display information that should be printed on every page (for example, logo or number of pages).&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Sub-band&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Very interesting type of band. It may contain some logically separated kind of information. You can apply special rules to display or hide this band. for example, invoice may contain tax or may not contain tax. You can put tax amounts into sub-band and print it depending of the tax selection.&lt;/p&gt;
&lt;p&gt;Another example: if tax in invoice is not selected, than you may have a special sub-band where a text explaining absence of taxes will be displayed.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Detail report&lt;/p&gt;
&lt;/td&gt;
&lt;td class="cellrowborder" valign="top" width=""&gt;
&lt;p&gt;Used when you need to display internal table (multiple rows). For example, after invoice header, which is printed once, a number of rows are printed. To correctly display them, you have to add Detail report inside Detail band.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Here is graphical representation of this structure:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351583690v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;h3 class="ui-topic-title" title="Expanding/collapsing bands"&gt;Expanding/collapsing bands&lt;/h3&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;You can collapse bands which are not currently needed, to free-up some space and concentrate in a band you&amp;#39;re currently working with.&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351640419v3.png" alt=" " /&gt;&lt;/div&gt;
&lt;h3 class="ui-topic-title" title="Expanding/collapsing bands"&gt;Adding bands&lt;/h3&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span id="GUID-C588C27B-F0C7-4339-B4E2-75335F68EE4B__GUID-E1C5B3CB-F7EC-4FF7-A09D-2BBCDB2CC034"&gt;To add a band, right-click a report&amp;#39;s design surface and choose&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="uicontrol"&gt;Insert Band&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the invoked context menu.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351677612v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span&gt;You can insert the&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Detail Report&lt;/strong&gt;&lt;span&gt;&amp;nbsp;band to display nested table contents. For invoices, nested tables are:&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Rows to print&lt;/strong&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice details&lt;/strong&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment method list&lt;/strong&gt;&lt;span&gt;, etc. (these properties in the field list have corresponding &amp;#39;table&amp;#39; icon).&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;strong&gt;Detail report&lt;/strong&gt;&lt;span&gt;&amp;nbsp;bands, in its turn, also may have headers and footers.&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;span&gt;Accessing the Bands Collection&lt;br /&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span class="uicontrol"&gt;Edit and Reorder Bands&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;context link in a report&amp;#39;s smart tag to access the report&amp;#39;s bands collection. It may be useful to reorder bands, or manage them from a centralized place.&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351718077v5.png" alt=" " /&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;&lt;/div&gt;
&lt;div class="ui-topic-title" title="Expanding/collapsing bands"&gt;
&lt;div class="ui-topic-title" title="Template source data and invoice structure"&gt;Template source data and invoice structure&lt;/div&gt;
&lt;div id="lcDocXFormsHeader"&gt;
&lt;div class="top_nav_bar_inner_right_group " id="top_nav_bar_comments"&gt;
&lt;div class="ui-btn img-btn top_nav_bar_inner_right_btn" title="Show"&gt;&lt;/div&gt;
&lt;div class="ui-btn img-btn top_nav_bar_inner_right_btn" title="Show"&gt;
&lt;div class="preview_area_wrapper"&gt;
&lt;div class="preview_area"&gt;
&lt;div class="nested0" id="GUID-0175A4DE-C2BE-4520-9D1B-7F06301572EC"&gt;
&lt;div&gt;
&lt;p&gt;Using the Field list panel, as it was written in the previous article, you get access to template source data.&lt;/p&gt;
&lt;p&gt;Each source represents one table from the database. Amount of rows in that table depends on the quantity of selected invoices (quotes, purchase orders, etc.) to be printed. To access application settings and user data, each table usually has&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;User&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property, which provides access to this information.&lt;/p&gt;
&lt;p&gt;Invoice structure usually contains one header, multiple rows, summary, optional information about taxes, optional notes, and a footer. Depending on the order and optionally displayed information, you select structure of the template.&lt;/p&gt;
&lt;p&gt;For example, invoice header (Detail bans) usually contains user&amp;#39;s and customer&amp;#39;s data, invoice number and date, logo, etc. This band is followed by Detail report linked with &amp;#39;&lt;em&gt;Rows to print&lt;/em&gt;&amp;#39; table, which contains invoice rows.&lt;/p&gt;
&lt;p&gt;As you already know, some kind of bands are displayed only once, while others are intended to display arrays of information. Let&amp;#39;s examine&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;default invoice template v1&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;It begins with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;Detail&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band, where we put such details as invoice number, term, customer data, information about issuer. This band will be printed once per each printed invoice. Open helper menu and check&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="uicontrol"&gt;Page break&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351760890v6.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This property signals to insert page break before each invoice header, except the first one. Thus, each invoices will be printed from the first page.&lt;/p&gt;
&lt;p&gt;Second band is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows (detail report)&lt;/strong&gt;. If to open helper menu for this band, you will see that its data member is set to Rows to print. This table is generated dynamically: it contains all tasks or receivables from linked translation jobs. Let&amp;#39;s repeat: invoice may be linked with multiple jobs, and each job may contain multiple rows in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tasks&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;or&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Receivables&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tables. When&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Receivables&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table has at least one row. Rows to print table will be filled with data from&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Receivables&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table. Otherwise, it will use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Job tasks&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table. This approach allows you to control what you want to see in invoice: all tasks (all fuzzy types), or some single row which shows average volume and price. Then you build custom invoice template, you may bind&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice details&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Rows to print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table (for example, if you wish to print only totals per each job, without detailed job contents).&lt;/p&gt;
&lt;p&gt;So,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;detail report will be printed as many times as a number of rows in the invoice.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;is grouped by job:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/6864.image-_2800_12_2900_.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For each group, template has group footer, which displays job notes and horizontal line. Sub-band with job notes is &lt;span style="text-decoration:underline;"&gt;&lt;span style="background-color:#ff0000;"&gt;conditionally hidden&lt;/span&gt;&lt;/span&gt;, if job does not contain notes. Second sub-band contains only horizontal row to separate jobs in template. This band is always printed (that is why it is separated from sub-band with notes).&lt;/p&gt;
&lt;p&gt;Underlining,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;section contains&lt;strong&gt;InvoiceRow&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band, which lists all tasks of the job linked with an invoice row.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;band has a report footer with total amount and notes. This footer is split to a number of sub-bands. This is done to be able to conditionally hide these sub-bands. For example, when&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tax2&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;is not selected in an invoice, corresponding sub-band would not be printed. To achieve this, Formatting rules feature is used.&lt;/p&gt;
&lt;p&gt;After&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceRows&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;detail report, another detail report is placed -&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment methods&lt;/strong&gt;. It will display accepted payment methods. In the header of this nested report we&amp;#39;ve put description text, which will be hidden if no any accepted payment methods were selected in a printed invoice. Again, this is achieved with the help of&lt;strong&gt;Formatting rules&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Detail report linked with accepted payment methods also demonstrates interesting property: it will be printed not only in the down direction, but in the right too. This is specified via helper menu, using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Multi-column mode&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Column count&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;properties. This feature allows to save some paper space and print 2 (in this example) payment methods in 1 row.&lt;/p&gt;
&lt;div&gt;&lt;span&gt;Here is an image demonstrating a structure of default invoice template:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;img src="/resized-image/__size/900x336/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351830304v8.png" alt=" " /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;img src="/resized-image/__size/900x412/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351830304v9.png" alt=" " /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p class="rvps2"&gt;&lt;span style="background-color:#ccffcc;"&gt;Does it all sound too complex? Maybe, a bit. Different people has absolutely different requirements to invoice templates. This leads to a increased complexity at start. Bands, especially detail reports, may force you to think that it is way to difficult to create own template. Don&amp;#39;t think that. Instead, try to play a bit with the designer, analyze field list, understand referenced properties and tables. Invoice in the field list is a table, which requires detail report. This detail report is the whole template itself. If you need to print table property from the field list (Invoice details, Payment methods), than you must create detail report. Additional complexity is added due to two detail reports linked with Invoice details (one for rows with empty job, another for rows with selected job). This is done because BaccS allows to create invoices in two ways - with linking with jobs and without linking. When invoice row is linked with the job, we use one way of printing (displaying information from the list of task of the selected job). When job is not selected, we use another way of printing (simply displaying price, quantity and amount from the invoice row).&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: npl, templates, designer, custom reports&lt;/div&gt;
</description></item></channel></rss>