Sha256: 416b039dd28fc531b4276455546bc2889d508d739c1bc40a7fd94e7f38cd9720
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
<% hours = @lines.reduce(BigDecimal.new('0')){|t, l| l.time_entry ? t+l.qty : t } %> <%= partial 'skus_table_other_charge_lines', record: @record, ncols: @ncols %> \multicolumn{<%= @ncols-3 %>}{r}{{ <% unless hours.zero? %> \textbf{<%= '%0.2f' % hours %>} <% end %> }} & <% unless hours.zero? %> \textbf{Hours} & <% end %> \textbf{Total} & \textbf{\textsuperscript{\$}<%= Skr::String.number_with_delimiter @record.total %>} \\ \cline{<%= @ncols - 3%>-<%= @ncols%>} % \hline <% unless @record.open? -%> \multicolumn{<%= @ncols-1%>}{r}{{\textbf{Amount Paid}}} & \textbf{\textsuperscript{\$}<%= Skr::String.number_with_delimiter @record.amount_paid %>} \\ \cline{<%= @ncols-3%>-<%= @ncols%>} % \hline % & \multicolumn{<%= 1 %>}{l}{{ \begin{rotate}{12} \resizebox{!}{16pt}{\texttt{\textcolor{BrickRed}{ <%= @record.fully_paid? ? 'PAID IN FULL' : 'PARTIALLY PAID' %> }}} \end{rotate} }} & % \multicolumn{<%= @ncols-3%>}{r}{{\textbf{Unpaid Amount}}} & \textbf{\textsuperscript{\$}<%= Skr::String.number_with_delimiter @record.unpaid_amount %>} \\ \cline{<%= @ncols-3%>-<%= @ncols%>} % \hline <% end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.4.0 | templates/print/partials/skus_table_invoice_footer.tex.erb |
stockor-0.3.0 | templates/print/partials/skus_table_invoice_footer.tex.erb |