|
Lines 41-141
Link Here
|
| 41 |
|
41 |
|
| 42 |
<h1>Spent - Fund: [% fund_code | html %]</h1> |
42 |
<h1>Spent - Fund: [% fund_code | html %]</h1> |
| 43 |
|
43 |
|
| 44 |
<table id="spent"> |
44 |
<div class="page-section"> |
| 45 |
<thead> |
|
|
| 46 |
<tr> |
| 47 |
<th class="anti-the">Title</th> |
| 48 |
<th>[% tp('noun', 'Order') | html %]</th> |
| 49 |
<th>Vendor</th> |
| 50 |
<th>Invoice</th> |
| 51 |
<th>Item types</th> |
| 52 |
<th>Received</th> |
| 53 |
<th>Unit price</th> |
| 54 |
<th>Date ordered</th> |
| 55 |
<th>Date received</th> |
| 56 |
<th>Subtotal</th> |
| 57 |
</tr> |
| 58 |
</thead> |
| 59 |
|
45 |
|
| 60 |
[% FOREACH order IN spent %] |
46 |
<table id="spent"> |
| 61 |
<tr> |
47 |
<thead> |
| 62 |
<td class="cell"> |
48 |
<tr> |
| 63 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]"> |
49 |
<th class="anti-the">Title</th> |
| 64 |
[% order.title | html %] |
50 |
<th>[% tp('noun', 'Order') | html %]</th> |
| 65 |
</a> |
51 |
<th>Vendor</th> |
| 66 |
</td> |
52 |
<th>Invoice</th> |
| 67 |
<td class="cell"> |
53 |
<th>Item types</th> |
| 68 |
[% order.ordernumber | html %] |
54 |
<th>Received</th> |
| 69 |
</td> |
55 |
<th>Unit price</th> |
| 70 |
<td class="cell"> |
56 |
<th>Date ordered</th> |
| 71 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid | uri %]">[% order.vendorname | html %]</a> |
57 |
<th>Date received</th> |
| 72 |
</td> |
58 |
<th>Subtotal</th> |
| 73 |
<td class="cell"> |
59 |
</tr> |
| 74 |
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]">[% order.invoicenumber | html %]</a> |
60 |
</thead> |
| 75 |
</td> |
|
|
| 76 |
<td class="cell"> |
| 77 |
[% FOREACH itemtype IN order.itemtypes %] |
| 78 |
[% ItemTypes.GetDescription( itemtype ) | html %] |
| 79 |
[% IF !loop.last() %] | [% END %] |
| 80 |
[% END %] |
| 81 |
</td> |
| 82 |
<td class="cell"> |
| 83 |
[% order.quantityreceived | html %] |
| 84 |
</td> |
| 85 |
<td class="cell"> |
| 86 |
[% order.unitprice_tax_included | $Price %] |
| 87 |
</td> |
| 88 |
<td class="cell" data-order="[% order.entrydate | html %]"> |
| 89 |
[% order.entrydate | $KohaDates %] |
| 90 |
</td> |
| 91 |
<td class="cell" data-order="[% order.datereceived | html %]"> |
| 92 |
[% order.datereceived | $KohaDates %] |
| 93 |
</td> |
| 94 |
<td class="data cell"> |
| 95 |
[% order.rowtotal | $Price %] |
| 96 |
</td> |
| 97 |
</tr> |
| 98 |
[% END %] |
| 99 |
|
61 |
|
| 100 |
<tfoot> |
62 |
[% FOREACH order IN spent %] |
| 101 |
[% IF shipmentcosts.size || ( adjustments && adjustments.count > 0 ) %] |
|
|
| 102 |
<tr> |
63 |
<tr> |
| 103 |
<td colspan="9"> Sub total </td> |
64 |
<td class="cell"> |
| 104 |
<td class="data"> [% subtotal | $Price %] </td> |
65 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]"> |
|
|
66 |
[% order.title | html %] |
| 67 |
</a> |
| 68 |
</td> |
| 69 |
<td class="cell"> |
| 70 |
[% order.ordernumber | html %] |
| 71 |
</td> |
| 72 |
<td class="cell"> |
| 73 |
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid | uri %]">[% order.vendorname | html %]</a> |
| 74 |
</td> |
| 75 |
<td class="cell"> |
| 76 |
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]">[% order.invoicenumber | html %]</a> |
| 77 |
</td> |
| 78 |
<td class="cell"> |
| 79 |
[% FOREACH itemtype IN order.itemtypes %] |
| 80 |
[% ItemTypes.GetDescription( itemtype ) | html %] |
| 81 |
[% IF !loop.last() %] | [% END %] |
| 82 |
[% END %] |
| 83 |
</td> |
| 84 |
<td class="cell"> |
| 85 |
[% order.quantityreceived | html %] |
| 86 |
</td> |
| 87 |
<td class="cell"> |
| 88 |
[% order.unitprice_tax_included | $Price %] |
| 89 |
</td> |
| 90 |
<td class="cell" data-order="[% order.entrydate | html %]"> |
| 91 |
[% order.entrydate | $KohaDates %] |
| 92 |
</td> |
| 93 |
<td class="cell" data-order="[% order.datereceived | html %]"> |
| 94 |
[% order.datereceived | $KohaDates %] |
| 95 |
</td> |
| 96 |
<td class="data cell"> |
| 97 |
[% order.rowtotal | $Price %] |
| 98 |
</td> |
| 105 |
</tr> |
99 |
</tr> |
| 106 |
[% END %] |
100 |
[% END %] |
| 107 |
[% IF shipmentcosts.size %] |
101 |
|
| 108 |
[% FOREACH shipmentcost IN shipmentcosts %] |
102 |
<tfoot> |
|
|
103 |
[% IF shipmentcosts.size || ( adjustments && adjustments.count > 0 ) %] |
| 109 |
<tr> |
104 |
<tr> |
| 110 |
<td></td> |
105 |
<td colspan="9"> Sub total </td> |
| 111 |
<td colspan="8">Shipping cost for invoice |
106 |
<td class="data"> [% subtotal | $Price %] </td> |
| 112 |
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% shipmentcost.invoiceid | uri %]"> |
|
|
| 113 |
[% shipmentcost.invoicenumber | html %] |
| 114 |
</a> |
| 115 |
</td> |
| 116 |
<td class="data total">[% shipmentcost.shipmentcost | $Price %]</td> |
| 117 |
</tr> |
107 |
</tr> |
| 118 |
[% END %] |
108 |
[% END %] |
| 119 |
[% END %] |
109 |
[% IF shipmentcosts.size %] |
| 120 |
[% IF ( adjustments && adjustments.count > 0 ) %] |
110 |
[% FOREACH shipmentcost IN shipmentcosts %] |
| 121 |
[% FOREACH adjustment IN adjustments %] |
111 |
<tr> |
| 122 |
<tr> |
112 |
<td></td> |
| 123 |
<td></td> |
113 |
<td colspan="8">Shipping cost for invoice |
| 124 |
<td colspan="8">Adjustment cost for invoice |
114 |
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% shipmentcost.invoiceid | uri %]"> |
| 125 |
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% adjustment.invoiceid | uri %]"> |
115 |
[% shipmentcost.invoicenumber | html %] |
| 126 |
[% adjustment.invoice.invoicenumber | html %] |
116 |
</a> |
| 127 |
</a> |
117 |
</td> |
| 128 |
</td> |
118 |
<td class="data total">[% shipmentcost.shipmentcost | $Price %]</td> |
| 129 |
<td class="data total">[% adjustment.adjustment | $Price %]</td> |
119 |
</tr> |
| 130 |
</tr> |
120 |
[% END %] |
| 131 |
[% END %] |
121 |
[% END %] |
| 132 |
[% END %] |
122 |
[% IF ( adjustments && adjustments.count > 0 ) %] |
| 133 |
<tr> |
123 |
[% FOREACH adjustment IN adjustments %] |
| 134 |
<td colspan="9">TOTAL</td> |
124 |
<tr> |
| 135 |
<td class="data total">[% total | $Price %]</td> |
125 |
<td></td> |
| 136 |
</tr> |
126 |
<td colspan="8">Adjustment cost for invoice |
| 137 |
</tfoot> |
127 |
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% adjustment.invoiceid | uri %]"> |
| 138 |
</table> |
128 |
[% adjustment.invoice.invoicenumber | html %] |
|
|
129 |
</a> |
| 130 |
</td> |
| 131 |
<td class="data total">[% adjustment.adjustment | $Price %]</td> |
| 132 |
</tr> |
| 133 |
[% END %] |
| 134 |
[% END %] |
| 135 |
<tr> |
| 136 |
<td colspan="9">TOTAL</td> |
| 137 |
<td class="data total">[% total | $Price %]</td> |
| 138 |
</tr> |
| 139 |
</tfoot> |
| 140 |
</table> |
| 141 |
|
| 142 |
</div> <!-- /.page-section --> |
| 139 |
|
143 |
|
| 140 |
</main> |
144 |
</main> |
| 141 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
145 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |