Sha256: 5a5504025e754710b7732915e349edf79e1ce0240033d903e24353fbc32bae98
Contents?: true
Size: 1017 Bytes
Versions: 2
Compression:
Stored size: 1017 Bytes
Contents
<% line = @invoice.lines.first qty = line.qty.to_i %> \usepackage{xcolor} \geometry{a6paper, margin=3mm, right=6mm, headheight=0mm, landscape} \usepackage[]{qrcode} \begin{document} \noindent \pagecolor{yellow!25} \fancypage{\Ovalbox}{} \begin{tabu} to \textwidth{X[-1,m,l]X[0,m,c]r} <% if (logo = @invoice.location.get_logo).present? -%> \includegraphics[align=t,height=14mm,keepaspectratio]{<%= logo.file.path %>} <% end -%> & {\bf \LARGE <%=q @invoice.location.address.name %>} \small <%= break_lines @invoice.location.address.to_s(include: [:phone], without:[:name]) %> & \qrcode[]{<%= @invoice.hash_code %>} \\ \end{tabu} \bigskip {\bf \large This ticket admits <%= Skr::Number.as_words(qty) %> (<%= qty %>) <%= pluralize(qty, 'person') %> to:} \begin{center} <% if (snippet = get_snippet(@invoice.options['print_content'])) %> <%= snippet %> <% else %> \bigskip \bigskip {\bf\LARGE <%= line.description %>} \vfill <%= @invoice.options['event_info'] %> <% end %> \end{center} \end{document}
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.5.0 | templates/print/types/invoice/ticket.tex.erb |
stockor-0.4.0 | templates/print/types/invoice/ticket.tex.erb |