<div id="doc3" class="yui-t2">
<div id="bd">
- <div id="yui-main">
- <div class="yui-b">
+<div id="yui-main">
+ <div class="yui-b">
<h1>Fund: [% fund_code %]</h1>
<h2>Ordered</h2>
<table id="spent">
- <thead>
- <tr>
- <th class="anti-the"> Title </th>
- <th> Order </th>
- <th> Vendor </th>
- <th> Item type </th>
- <th> Left on order </th>
- <th> Estimated cost per unit </th>
- <th class="title-string"> Date ordered </th>
- <th> Subtotal </th>
- </tr>
- </thead>
- <tbody>
+<thead>
+<tr>
+<th class="anti-the"> Title </th>
+<th> Order </th>
+<th> Vendor </th>
+<th> Item type </th>
+<th> Left on order </th>
+<th> Estimated cost per unit </th>
+<th class="title-string"> Date ordered </th>
+<th> Subtotal </th>
+</tr>
+</thead>
+<tbody>
[% FOREACH order IN ordered %]
- <tr>
- <td class="cell">
- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">
- [% order.title %]
- </a>
- </td>
- <td class="cell">
- [% IF ( CAN_user_acquisition_order_manage ) %]
- <a href="/cgi-bin/koha/acqui/neworderempty.pl?ordernumber=[% order.ordernumber %]&booksellerid=[% order.booksellerid %]&basketno=[% order.basketno %]">[% order.ordernumber %]</a>
- [% ELSE %]
- [% order.ordernumber %]
- [% END %]
- </td>
- <td class="cell">
- <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid | uri %]">[% order.vendorname | html %]</a>
- </td>
- <td class="cell">
- [% ItemTypes.GetDescription( order.itype ) %]
- </td>
- <td class="cell">
- [% order.left %]
- </td>
- <td class="data cell">
- [% order.ecost_tax_included | $Price %]
- </td>
- <td class="cell">
- <span title="[% order.entrydate %]">[% order.entrydate | $KohaDates %]</span>
- </td>
- <td class="data cell">
- [% order.subtotal %]
+<tr>
+<td class="cell">
+ <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">
+ [% order.title %]
+ </a>
+</td>
+<td class="cell">
+ [% IF ( CAN_user_acquisition_order_manage ) %]
+ <a href="/cgi-bin/koha/acqui/neworderempty.pl?ordernumber=[% order.ordernumber %]&booksellerid=[% order.booksellerid %]&basketno=[% order.basketno %]">[% order.ordernumber %]</a>
+ [% ELSE %]
+ [% order.ordernumber %]
+ [% END %]
+</td>
+<td class="cell">
+ <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid | uri %]">[% order.vendorname | html %]</a>
+</td>
+<td class="cell">
+ [% ItemTypes.GetDescription( order.itype ) %]
+</td>
+<td class="cell">
+ [% order.left %]
+</td>
+<td class="data cell">
+ [% order.ecost_tax_included | $Price %]
+</td>
+<td class="cell">
+ <span title="[% order.entrydate %]">[% order.entrydate | $KohaDates %]</span>
+</td>
+<td class="data cell">
+ [% order.subtotal | $Price %]
</td>
</tr>
[% END %]
</tbody>
<tfoot>
+ [% IF ( adjustments && adjustments.count > 0 ) %]
+ [% FOREACH adjustment IN adjustments %]
+ <tr>
+ <td></td>
+ <td colspan="6">Adjustment cost for invoice [% adjustment.invoiceid | html %]</td>
+ <td class="data total">[% adjustment.adjustment | $Price %]</td>
+ </tr>
+ [% END %]
+
+ [% END %]
<tr>
<td> Total </td>
<td> </td>
<td> </td>
<td> </td>
<td class="data">
- [% total %]
+ [% total | $Price %]
</td>
</tr>
</tfoot>
</td>
<td class="data cell">
[% order.rowtotal %]
+ [% order.rowtotal | $Price %]
</td>
</tr>
[% END %]
[% IF shipmentcosts.size %]
<tr valign="top">
<td colspan="9"> Sub total </td>
- <td class="data"> [% subtotal %] </td>
+ <td class="data"> [% subtotal | $Price %] </td>
</tr>
[% FOREACH shipmentcost IN shipmentcosts %]
<tr>
<td></td>
- <td colspan="8">Shipping cost for invoice [% shipmentcost.invoicenumber %]</td>
- <td class="data total">[% shipmentcost.shipmentcost %]</td>
+ <td colspan="8">Shipping cost for invoice [% shipmentcost.invoicenumber | html %]</td>
+ <td class="data total">[% shipmentcost.shipmentcost | $Price %]</td>
+ </tr>
+ [% END %]
+ [% END %]
+ [% IF ( adjustments && adjustments.count > 0 ) %]
+ [% FOREACH adjustment IN adjustments %]
+ <tr>
+ <td></td>
+ <td colspan="8">Adjustment cost for invoice [% adjustment.invoiceid | html %]</td>
+ <td class="data total">[% adjustment.adjustment | $Price %]</td>
</tr>
[% END %]
[% END %]
<tr>
<td colspan="9">TOTAL</td>
- <td class="data total">[% total %]</td>
+ <td class="data total">[% total | $Price %]</td>
</tr>
</tfoot>
</table>