Sha256: 391304e1e02a1ccef04fa37796592d16f10a79fe0b8045cb66f61f72ef2339a0

Contents?: true

Size: 884 Bytes

Versions: 2

Compression:

Stored size: 884 Bytes

Contents

<%
groups = []
groups.push(
  { title: 'Labor', lines: @invoice.lines.time_entry,
    footer: 'skus_table_labor_group_footer' }
) if @invoice.lines.time_entry.any?
groups.push(
  { title: 'Non Labor', lines: @invoice.lines.product }
) if @invoice.lines.product.any?
-%>
%
%
%
\begin{document}
<%= partial( 'header', {
  location: @invoice.location, date: @invoice.invoice_date,
  form_title: "Invoice # #{@invoice.visible_id}"
} ) %>
\textbf{Invoice To:}
\medskip
\hspace*{3ex}{
<%=partial 'address', :address=>@invoice.billing_address %>
\medskip
<%=partial 'skus_table_invoice_info_line', invoice: @invoice -%>
%
<%=partial 'skus_table',
    line_template: 'skus_table_labor_line',
    headings_template: 'skus_table_labor_col_hdr',
    groups: groups.many? ? groups : false,
    record: @invoice, lines: @invoice.lines,
    footer: 'skus_table_invoice_footer'
-%>
%
\end{document}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stockor-0.5.0 templates/print/types/invoice/labor.tex.erb
stockor-0.4.0 templates/print/types/invoice/labor.tex.erb