Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt
Jonathan Druart 9d595e36a7 Bug 21282: Sync ordered and spent values with acqui home
The order list for each fund calculates using the ecost tax excl., but
it should be tax incl.
At the moment this means that the sum on the start page table and the
order list don't match up.

Test plan:
- Create and receive orders
- Values on acqui home and ordered/spent should be the same

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-11-13 21:06:44 +00:00

129 lines
3.7 KiB
Text

[% USE raw %]
[% USE Asset %]
[% USE KohaDates %]
[% USE ItemTypes %]
[% USE Price %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; Ordered</title>
[% Asset.css("css/datatables.css") | $raw %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="acq_ordered" class="acq">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'acquisitions-search.inc' %]
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; Ordered - [% fund_code | html %]</div>
<div class="main container-fluid">
<div class="row">
<div class="col-sm-10 col-sm-push-2">
<main>
<h1>Fund: [% fund_code | html %]</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>
[% FOREACH order IN ordered %]
<tr>
<td class="cell">
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">
[% order.title | html %]
</a>
</td>
<td class="cell">
[% IF ( CAN_user_acquisition_order_manage ) %]
<a href="/cgi-bin/koha/acqui/neworderempty.pl?ordernumber=[% order.ordernumber | uri %]&amp;booksellerid=[% order.booksellerid | uri %]&amp;basketno=[% order.basketno | uri %]">[% order.ordernumber | html %]</a>
[% ELSE %]
[% order.ordernumber | html %]
[% 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 ) | html %]
</td>
<td class="cell">
[% order.left | html %]
</td>
<td class="data cell">
[% order.ecost_tax_included | $Price %]
</td>
<td class="cell">
<span title="[% order.entrydate | html %]">[% order.entrydate | $KohaDates %]</span>
</td>
<td class="data cell">
[% order.subtotal | html %]
</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 | html %]</td>
</tr>
[% END %]
[% END %]
<tr>
<td> Total </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td class="data">
[% total | html %]
</td>
</tr>
</tfoot>
</table>
</main>
</div> <!-- /.col-sm-10.col-sm-push-2 -->
<div class="col-sm-2 col-sm-pull-10">
<aside>
[% INCLUDE 'acquisitions-menu.inc' %]
</aside>
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
</div> <!-- /.row -->
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/acquisitions-menu.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
<script>
$(document).ready(function() {
$("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
"aoColumnDefs": [
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] },
{ "sType": "title-string", "aTargets" : [ "title-string" ] }
],
"sPaginationType": "four_button"
}));
});
</script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]