Lines 3-8
Link Here
|
3 |
[% USE KohaDates %] |
3 |
[% USE KohaDates %] |
4 |
[% USE Branches %] |
4 |
[% USE Branches %] |
5 |
[% USE ColumnsSettings %] |
5 |
[% USE ColumnsSettings %] |
|
|
6 |
[% USE Price %] |
6 |
[% SET footerjs = 1 %] |
7 |
[% SET footerjs = 1 %] |
7 |
[% INCLUDE 'doc-head-open.inc' %] |
8 |
[% INCLUDE 'doc-head-open.inc' %] |
8 |
<title>Koha › Acquisitions › Late orders</title> |
9 |
<title>Koha › Acquisitions › Late orders</title> |
Lines 35-41
Link Here
|
35 |
[% IF info_claim %] |
36 |
[% IF info_claim %] |
36 |
<div class="dialog message">Email has been sent.</div> |
37 |
<div class="dialog message">Email has been sent.</div> |
37 |
[% END %] |
38 |
[% END %] |
38 |
[% IF ( lateorders ) %] |
39 |
[% IF lateorders.count %] |
39 |
<form action="lateorders.pl" name="claim" method="post"> |
40 |
<form action="lateorders.pl" name="claim" method="post"> |
40 |
<input type="hidden" name="op" value="send_alert" /> |
41 |
<input type="hidden" name="op" value="send_alert" /> |
41 |
<input type="hidden" name="delay" value="[% delay | html %]" /> |
42 |
<input type="hidden" name="delay" value="[% delay | html %]" /> |
Lines 48-53
Link Here
|
48 |
</select> |
49 |
</select> |
49 |
</p> |
50 |
</p> |
50 |
[% END %] |
51 |
[% END %] |
|
|
52 |
[% SET total = 0 %] |
51 |
<table id="late_orders"> |
53 |
<table id="late_orders"> |
52 |
<thead> |
54 |
<thead> |
53 |
<tr> |
55 |
<tr> |
Lines 77-147
Link Here
|
77 |
[% FOREACH lateorder IN lateorders %] |
79 |
[% FOREACH lateorder IN lateorders %] |
78 |
<tr> |
80 |
<tr> |
79 |
<td> |
81 |
<td> |
80 |
<input type="checkbox" value="[% lateorder.ordernumber | html %]" data-booksellerid="[% lateorder.supplierid | html %]" name="ordernumber"> |
82 |
<input type="checkbox" value="[% lateorder.ordernumber | html %]" data-booksellerid="[% lateorder.basket.booksellerid | html %]" name="ordernumber"> |
81 |
</td> |
83 |
</td> |
82 |
<td> |
84 |
<td> |
83 |
[% lateorder.ordernumber | $raw %] |
85 |
[% lateorder.ordernumber | $raw %] |
84 |
</td> |
86 |
</td> |
85 |
<td> |
87 |
<td> |
86 |
<span title="[% lateorder.orderdate | html %]">[% lateorder.orderdate | $KohaDates %] ([% lateorder.latesince | html %] days)</span> |
88 |
<span title="[% lateorder.basket.closedate | html %]">[% lateorder.basket.closedate | $KohaDates %] ([% lateorder.basket.late_since_days | html %] days)</span> |
87 |
</td> |
89 |
</td> |
88 |
<td> |
90 |
<td> |
89 |
[% IF ( lateorder.estimateddeliverydate ) %] |
91 |
[% SET estimated_delivery_date = lateorder.get_column('estimated_delivery_date') %] |
90 |
<span title="[% lateorder.estimateddeliverydate | html %]">[% lateorder.estimateddeliverydate | $KohaDates %]</span> |
92 |
[% IF estimated_delivery_date %] |
91 |
[% ELSE %] |
93 |
<span title="[% estimated_delivery_date | html %]">[% estimated_delivery_date | $KohaDates %]</span> |
92 |
<span title="0000-00-00"></span> |
|
|
93 |
[% END %] |
94 |
[% END %] |
94 |
</td> |
95 |
</td> |
95 |
<td> |
96 |
<td> |
96 |
[% lateorder.supplier | html %] |
97 |
[% lateorder.basket.bookseller.name | html %] |
97 |
([% lateorder.supplierid | html %]) |
98 |
([% lateorder.basket.bookseller.id | html %]) |
98 |
</td> |
99 |
</td> |
99 |
<td> |
100 |
<td> |
100 |
<b>[% lateorder.title | html %]</b> |
101 |
<b>[% lateorder.biblio.title | html %]</b> |
101 |
[% IF ( lateorder.author ) %]<br/><i>Author:</i> [% lateorder.author | html %][% END %] |
102 |
[% IF ( lateorder.biblio.author ) %]<br/><i>Author:</i> [% lateorder.biblio.author | html %][% END %] |
102 |
[% IF ( lateorder.publisher ) %] |
103 |
[% IF ( lateorder.biblio.biblioitem.publishercode ) %] |
103 |
<br/><i>Published by:</i> [% lateorder.publisher | html %] |
104 |
<br/><i>Published by:</i> [% lateorder.biblio.biblioitem.publishercode | html %] |
104 |
[% IF ( lateorder.publicationyear ) %] |
105 |
[% IF ( lateorder.biblio.biblioitem.publicationyear ) %] |
105 |
<i> in </i>[% lateorder.publicationyear | html %] |
106 |
<i> in </i>[% lateorder.biblio.biblioitem.publicationyear | html %] |
106 |
[% END %] |
107 |
[% END %] |
107 |
[% END %] |
108 |
[% END %] |
108 |
</td> |
109 |
</td> |
109 |
<td> |
110 |
<td> |
110 |
[% lateorder.unitpricesupplier | html %]x[% lateorder.quantity | html %] = |
111 |
[% SET subtotal = (lateorder.quantity - lateorder.quantityreceived) * lateorder.rrp %] |
111 |
[% lateorder.subtotal | html %] |
112 |
[% SET total = total + subtotal %] |
|
|
113 |
[% lateorder.rrp | html %]x[% lateorder.quantity - lateorder.quantityreceived | html %] = [% subtotal | $Price %] |
112 |
</td> |
114 |
</td> |
113 |
<td> |
115 |
<td> |
114 |
[% IF ( CAN_user_acquisition_order_manage ) %] |
116 |
[% IF ( CAN_user_acquisition_order_manage ) %] |
115 |
<a href="basket.pl?basketno=[% lateorder.basketno | uri %]" title="basket">[% lateorder.basketname | html %] ([% lateorder.basketno | html %])</a> |
117 |
<a href="basket.pl?basketno=[% lateorder.basketno | uri %]" title="basket">[% lateorder.basket.basketname | html %] ([% lateorder.basketno | html %])</a> |
116 |
[% ELSE %] |
118 |
[% ELSE %] |
117 |
[% lateorder.basketname | html %] ([% lateorder.basketno | html %]) |
119 |
[% lateorder.basket.basketname | html %] ([% lateorder.basketno | html %]) |
118 |
[% END %] |
120 |
[% END %] |
119 |
</td> |
121 |
</td> |
120 |
<td> |
122 |
<td> |
121 |
[% IF ( lateorder.basketgroupid ) %] |
123 |
[% IF ( lateorder.basket.basketgroupid ) %] |
122 |
[% IF ( CAN_user_acquisition_group_manage ) %] |
124 |
[% IF ( CAN_user_acquisition_group_manage ) %] |
123 |
<a href="basketgroup.pl?op=add&booksellerid=[% lateorder.supplierid | uri %]&basketgroupid=[% lateorder.basketgroupid | uri %]" title="basketgroup">[% lateorder.basketgroupname | html %] ([% lateorder.basketgroupid | html %])</a> |
125 |
<a href="basketgroup.pl?op=add&booksellerid=[% lateorder.basket.booksellerid | uri %]&basketgroupid=[% lateorder.basket.basketgroupid | uri %]" title="basketgroup">[% lateorder.basket.basket_group.name | html %] ([% lateorder.basket.basketgroupid | html %])</a> |
124 |
[% ELSE %] |
126 |
[% ELSE %] |
125 |
[% lateorder.basketgroupname | html %] ([% lateorder.basketgroupid | html %])</a> |
127 |
[% lateorder.basket.basket_group.name | html %] ([% lateorder.basket.basketgroupid | html %])</a> |
126 |
[% END %] |
128 |
[% END %] |
127 |
[% END %] |
129 |
[% END %] |
128 |
</td> |
130 |
</td> |
129 |
<td>[% Branches.GetName( lateorder.branch ) | html %] |
131 |
<td>[% Branches.GetName( lateorder.basket.authorizer.branchcode ) | html %] |
130 |
</td> |
132 |
</td> |
131 |
<td>[% lateorder.budget | html %] |
133 |
<td>[% lateorder.fund.budget_name | html %] |
132 |
</td> |
134 |
</td> |
133 |
<td>[% lateorder.claims_count | html %]</td> |
135 |
<td>[% lateorder.claims.count | html %]</td> |
134 |
<td> |
136 |
<td> |
135 |
[% IF ( lateorder.claimed_date ) %] |
137 |
[% FOR claim IN lateorder.claims %] |
136 |
<span title="[% lateorder.claimed_date | html %]">[% lateorder.claimed_date | $KohaDates %]</span> |
138 |
<span title="[% lateorder.claims.last.claimed_on | html %]">[% claim.claimed_on | $KohaDates %]</span> |
137 |
[% ELSE %] |
|
|
138 |
<span title="0000-00-00"></span> |
139 |
[% END %] |
139 |
[% END %] |
140 |
</td> |
140 |
</td> |
141 |
<td> |
141 |
<td> |
142 |
[% IF ( lateorder.internalnote ) %] |
142 |
[% IF lateorder.order_internalnote %] |
143 |
<p class="ordernote"> |
143 |
<p class="ordernote"> |
144 |
<span id="internal-note-[% lateorder.ordernumber | html %]">[% lateorder.internalnote | html %]</span> |
144 |
<span id="internal-note-[% lateorder.ordernumber | html %]">[% lateorder.order_internalnote | html %]</span> |
145 |
<a class="edit_note noExport" data-ordernumber="[% lateorder.ordernumber | html %]" data-note_type="internal" href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% lateorder.ordernumber | html %]&type=internal" title="Edit internal note"> |
145 |
<a class="edit_note noExport" data-ordernumber="[% lateorder.ordernumber | html %]" data-note_type="internal" href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% lateorder.ordernumber | html %]&type=internal" title="Edit internal note"> |
146 |
<i class="fa fa-pencil"></i> Edit internal note |
146 |
<i class="fa fa-pencil"></i> Edit internal note |
147 |
</a> |
147 |
</a> |
Lines 153-161
Link Here
|
153 |
[% END %] |
153 |
[% END %] |
154 |
</td> |
154 |
</td> |
155 |
<td> |
155 |
<td> |
156 |
[% IF ( lateorder.vendornote ) %] |
156 |
[% IF lateorder.order_vendornote %] |
157 |
<p class="ordernote"> |
157 |
<p class="ordernote"> |
158 |
<span id="vendor-note-[% lateorder.ordernumber | html %]">[% lateorder.vendornote | html %]</span> |
158 |
<span id="vendor-note-[% lateorder.ordernumber | html %]">[% lateorder.order_vendornote | html %]</span> |
159 |
<a class="edit_note noExport" data-ordernumber="[% lateorder.ordernumber | html %]" data-note_type="vendor" href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% lateorder.ordernumber | html %]&type=vendor" title="Edit vendor note"> |
159 |
<a class="edit_note noExport" data-ordernumber="[% lateorder.ordernumber | html %]" data-note_type="vendor" href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% lateorder.ordernumber | html %]&type=vendor" title="Edit vendor note"> |
160 |
<i class="fa fa-pencil"></i> Edit vendor note |
160 |
<i class="fa fa-pencil"></i> Edit vendor note |
161 |
</a> |
161 |
</a> |
Lines 166-179
Link Here
|
166 |
</a> |
166 |
</a> |
167 |
[% END %] |
167 |
[% END %] |
168 |
</td> |
168 |
</td> |
169 |
<td>[% lateorder.isbn | $raw %]</td> |
169 |
<td>[% lateorder.biblio.biblioitem.isbn | $raw %]</td> |
170 |
</tr> |
170 |
</tr> |
171 |
[% END %] |
171 |
[% END %] |
172 |
</tbody> |
172 |
</tbody> |
173 |
<tfoot> |
173 |
<tfoot> |
174 |
<tr> |
174 |
<tr> |
175 |
<th colspan="6">Total</th> |
175 |
<th colspan="6">Total</th> |
176 |
<th>[% total | html %]</th> |
176 |
<th>[% total | $Price %]</th> |
177 |
<th colspan="9"> </th> |
177 |
<th colspan="9"> </th> |
178 |
</tr> |
178 |
</tr> |
179 |
</tfoot> |
179 |
</tfoot> |