Sha256: db399647984ec6e394766ae480dba39a67be0b896c63a4037f5316ee19d556e4

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

% <% ncols = 6 %>
{\tabulinesep 0.2cm
\noindent\begin{longtabu} to \textwidth {lX<%='c'*(ncols-4) %>rr}
<%= partial @headings_template || 'skus_table_col_hdr' %>
\hline
  \endfirsthead
  \multicolumn{<%=ncols%>}{l}{...continued from previous page} \\
<%= partial @headings_template || 'skus_table_col_hdr' %>
  \endhead
  \hline
  \multicolumn{<%=ncols%>}{r}{Continued on next page...} \\
  \endfoot
  \hline
<%= partial @footer || 'skus_table_footer', record: @record, ncols: ncols, lines: @lines %>
\endlastfoot
<% if @groups %>
  <% @groups.each_with_index do | group, i | -%>
    \multicolumn{<%= ncols%>}{l}{\textbf{<%=q group[:title] %>}} \\
    \cline{1-1}
    <% group[:lines].each do | line | %>
      <%= partial @line_template || 'skus_table_line', line: line -%>
    <% end -%>
    <%= partial group[:footer] || 'skus_table_group_footer',
        invoice: @record, group: group, ncols: ncols %>
  <% end -%>
<% else %>
  <% @lines.each do | line | %>
    <%= partial @line_template || 'skus_table_line', line: line -%>
  <% end -%>
<% end -%>
\end{longtabu}
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stockor-0.5.0 templates/print/partials/skus_table.tex.erb
stockor-0.4.0 templates/print/partials/skus_table.tex.erb
stockor-0.3.0 templates/print/partials/skus_table.tex.erb