[OPEN-ILS-GENERAL] Adding copy barcode/ID to the invoice print output template
Cerninakova Eva
cernin at jabok.cz
Fri Jan 23 07:07:01 EST 2015
Hi all
Due to Czech accounting rules we need to hand over a list containing copy
barcodes/IDs related to every paid invoice item saved in Evergreen
Acquisition to our Accounting Department. We use report module for printing
overview of copy barcodes attached to each invoice, but this way is a bit
laborious. If the barcode could be added to the trigger event definition
template processed on demand when printing the invoice, it would save us
much time and effort. I have previously successfully customized the
"Invoice" template" in Notification / Action Triggers interface according
to most of our needs but as I am not a template toolkit expert I failed to
add barcode(s) of item paid to the template output.
Is there an easy way to add copy barcode (or at least ID) to the "Invoice"
trigger event definition template (e.g. do you think using a part of the
"lineitem worksheet" trigger event definition template would solve the
problem)?
Thanks in advance for your ideas :-)
Eva
PS: The default Invoice trigger event deffinition template looks like this:
[% FILTER collapse %]
[%- SET invoice = target -%]
<!-- This lacks general refinement -->
<div class="acq-invoice-voucher">
<h1>Invoice</h1>
<div>
<strong>No.</strong> [% invoice.inv_ident %]
[% IF invoice.inv_type %]
/ <strong>Type:</strong>[% invoice.inv_type %]
[% END %]
</div>
<div>
<dl>
[% BLOCK ent_with_address %]
<dt>[% ent_label %]: [% ent.name %] ([% ent.code %])</dt>
<dd>
[% IF ent.addresses.0 %]
[% SET addr = ent.addresses.0 %]
[% addr.street1 %]<br />
[% IF addr.street2 %][% addr.street2 %]<br />[% END %]
[% addr.city %],
[% IF addr.county %] [% addr.county %], [% END %]
[% IF addr.state %] [% addr.state %] [% END %]
[% IF addr.post_code %][% addr.post_code %][% END %]<br
/>
[% IF addr.country %] [% addr.country %] [% END %]
[% END %]
<p>
[% IF ent.phone %] Phone: [% ent.phone %]<br />[% END %]
[% IF ent.fax_phone %] Fax: [% ent.fax_phone %]<br />[%
END %]
[% IF ent.url %] URL: [% ent.url %]<br />[% END %]
[% IF ent.email %] E-mail: [% ent.email %] [% END %]
</p>
</dd>
[% END %]
[% INCLUDE ent_with_address
ent = invoice.provider
ent_label = "Provider" %]
[% INCLUDE ent_with_address
ent = invoice.shipper
ent_label = "Shipper" %]
<dt>Receiver</dt>
<dd>
[% invoice.receiver.name %] ([% invoice.receiver.shortname
%])
</dd>
<dt>Received</dt>
<dd>
[% helpers.format_date(invoice.recv_date) %] by
[% invoice.recv_method %]
</dd>
[% IF invoice.note %]
<dt>Note</dt>
<dd>
[% invoice.note %]
</dd>
[% END %]
</dl>
</div>
<ul>
[% FOR entry IN invoice.entries %]
<li>
[% IF entry.lineitem %]
Title: [% helpers.get_li_attr(
"title", "", entry.lineitem.attributes
) %]<br />
Author: [% helpers.get_li_attr(
"author", "", entry.lineitem.attributes
) %]
[% END %]
[% IF entry.purchase_order %]
(PO: [% entry.purchase_order.name %])
[% END %]<br />
Invoice item count: [% entry.inv_item_count %]
[% IF entry.phys_item_count %]
/ Physical item count: [% entry.phys_item_count %]
[% END %]
<br />
[% IF entry.cost_billed %]
Cost billed: [% entry.cost_billed %]
[% IF entry.billed_per_item %](per item)[% END %]
<br />
[% END %]
[% IF entry.actual_cost %]
Actual cost: [% entry.actual_cost %]<br />
[% END %]
[% IF entry.amount_paid %]
Amount paid: [% entry.amount_paid %]<br />
[% END %]
[% IF entry.note %]Note: [% entry.note %][% END %]
</li>
[% END %]
[% FOR item IN invoice.items %]
<li>
[% IF item.inv_item_type %]
Item Type: [% item.inv_item_type %]<br />
[% END %]
[% IF item.title %]Title/Description:
[% item.title %]<br />
[% END %]
[% IF item.author %]Author: [% item.author %]<br />[% END %]
[% IF item.purchase_order %]PO: [% item.purchase_order
%]<br />[% END %]
[% IF item.note %]Note: [% item.note %]<br />[% END %]
[% IF item.cost_billed %]
Cost billed: [% item.cost_billed %]<br />
[% END %]
[% IF item.actual_cost %]
Actual cost: [% item.actual_cost %]<br />
[% END %]
[% IF item.amount_paid %]
Amount paid: [% item.amount_paid %]<br />
[% END %]
</li>
[% END %]
</ul>
<div>
Amounts spent per fund:
<table>
[% FOR blob IN user_data %]
<tr>
<th style="text-align: left;">[% blob.fund.code %] ([%
blob.fund.year %]):</th>
<td>$[% blob.total %]</td>
</tr>
[% END %]
</table>
</div>
</div>
[% END %]
---
Mgr. Eva Cerniňáková
cernin at jabok.cz
Tel. +420 211 222 409
Knihovna Jabok
http:/knihovna.jabok.cuni.cz <http://knihovna.jabok.cz>
Tel. +420 211 222 410
Jabok - Vyšší odborná škola sociálně pedagogická a teologická
Salmovská 8, 120 00 Praha 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20150123/66da13fa/attachment-0001.htm>
More information about the Open-ils-general
mailing list