|
Lines 28-41
Link Here
|
| 28 |
<a href="#" aria-current="page">Invoices</a> |
28 |
<a href="#" aria-current="page">Invoices</a> |
| 29 |
</li> |
29 |
</li> |
| 30 |
</ol> |
30 |
</ol> |
| 31 |
|
31 |
<ol> |
| 32 |
<ol> |
32 |
[% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %] |
| 33 |
[% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %] |
33 |
</ol> |
| 34 |
</ol> |
34 |
<ol> |
| 35 |
|
35 |
<a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a> |
| 36 |
<ol> |
36 |
</ol> |
| 37 |
<a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a> |
|
|
| 38 |
</ol> |
| 39 |
</nav> |
37 |
</nav> |
| 40 |
|
38 |
|
| 41 |
<div class="main container-fluid"> |
39 |
<div class="main container-fluid"> |
|
Lines 102-108
Link Here
|
| 102 |
<td> |
100 |
<td> |
| 103 |
|
101 |
|
| 104 |
<div class="btn-group dropup"> |
102 |
<div class="btn-group dropup"> |
| 105 |
<a class="btn btn-default btn-xs dropdown-toggle" id="invoiceactions[% invoice.invoiceid | html %]" role="button" data-toggle="dropdown" href="#"> |
103 |
<a class="btn btn-default btn-xs dropdown-toggle lientype" id="invoiceactions[% invoice.invoiceid | html %]" role="button" data-toggle="dropdown" href="#"> |
| 106 |
Actions <b class="caret"></b> |
104 |
Actions <b class="caret"></b> |
| 107 |
</a> |
105 |
</a> |
| 108 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="invoiceactions[% invoice.invoiceid | html %]"> |
106 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="invoiceactions[% invoice.invoiceid | html %]"> |
|
Lines 112-286
Link Here
|
| 112 |
<li><a href="invoice.pl?op=reopen&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-refresh"></i> Reopen</a></li> |
110 |
<li><a href="invoice.pl?op=reopen&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-refresh"></i> Reopen</a></li> |
| 113 |
[% END %] |
111 |
[% END %] |
| 114 |
[% ELSE %] |
112 |
[% ELSE %] |
| 115 |
[% SET tab = 'opened' %] |
113 |
[% IF CAN_user_acquisition_edit_invoices %] |
|
|
114 |
<li><a href="invoice.pl?op=close&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-times-circle"></i> Close</a></li> |
| 115 |
[% END %] |
| 116 |
[% END %] |
116 |
[% END %] |
| 117 |
<input type="checkbox" style="vertical-align: middle;" id="show_only_subscription_[% tab | html %]" class="show_only_subscription" data-tableid="[% tab | html %]resultst"/> |
117 |
[% UNLESS invoice.receivedbiblios || invoice.receiveditems %] |
| 118 |
<label for="show_only_subscription_[% tab | html %]"> |
118 |
[% IF CAN_user_acquisition_delete_invoices %] |
| 119 |
Show only subscriptions |
119 |
<li><a href="invoice.pl?op=delete&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]" class="delete_invoice"><i class="fa fa-trash"></i> Delete</a></li> |
| 120 |
</label> |
120 |
[% END %] |
| 121 |
<p><a id="CheckAll[% tab | html %]table" data-cb="[% tab | html %]" class="checkall" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="UncheckAll[% tab | html %]table" data-cb="[% tab | html %]" class="uncheckall" href="#"><i class="fa fa-remove"></i> Clear all</a></p> |
121 |
[% END %] |
| 122 |
<table id="[% tab | html %]resultst" class="result"> |
122 |
</ul> |
| 123 |
<thead> |
123 |
</div> |
| 124 |
<tr> |
124 |
</td> |
| 125 |
[% IF CAN_user_acquisition_merge_invoices %] |
125 |
</tr> |
| 126 |
<th> </th> |
126 |
[% END %] |
| 127 |
[% END %] |
127 |
</tbody> |
| 128 |
<th> </th> |
128 |
</table> |
| 129 |
<th>Invoice number</th> |
129 |
[% IF CAN_user_acquisition_merge_invoices %] |
| 130 |
<th>Vendor</th> |
130 |
[% IF tab == 'closed' %] |
| 131 |
<th>Shipment date</th> |
131 |
<a class="btn btn-default merge lientype" id="merge_closed" href="#merge_invoices" data-table="closedresultst"><i class="fa fa-compress"></i> Merge selected invoices</a> |
| 132 |
<th>Billing date</th> |
132 |
<a class="btn btn-default lientype" id="open_sel" href="#reopen_selected" data-table="closedresultst" data-op="reopen" data-referer="referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-refresh"></i> Reopen selected invoices</a> |
| 133 |
<th>Received bibliographic records</th> |
133 |
[% ELSE %] |
| 134 |
<th>Received items</th> |
134 |
<a class="btn btn-default merge lientype" id="merge_open" href="#merge_invoices" data-table="openedresultst"><i class="fa fa-compress"></i> Merge selected invoices</a> |
| 135 |
<th>Status</th> |
135 |
<a class="btn btn-default lientype" id="close_sel" href="#close_selected" data-table="openedresultst" data-op="close" data-referer="referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-times-circle"></i> Close selected invoices</a> |
| 136 |
<th> </th> |
136 |
[% END %] |
| 137 |
</tr> |
137 |
[% END %] <!-- invoices_table --> |
| 138 |
</thead> |
138 |
[% END %] |
| 139 |
<tbody> |
139 |
<div id="invoicestabs" class="toptabs" style="clear:both;"> |
| 140 |
[% FOREACH invoice IN invoices %] |
140 |
<ul class="ui-tabs-nav"> |
| 141 |
<tr data-invoiceid="[% invoice.invoiceid | html %]" data-booksellerid="[% invoice.booksellerid | html %]" data-shipmentdate="[% invoice.shipmentdate | $KohaDates %]" data-billingdate="[% invoice.billingdate | $KohaDates %]" data-shipmentcost="[% invoice.shipmentcost | html %]" data-shipment_budgetid="[% invoice.shipmentcost_budgetid | html %]" data-closedate="[% invoice.closedate | $KohaDates %]"> |
141 |
<li><a href="#opened">Open invoices ([% openedinvoices.size || 0 | html %])</a></li> |
| 142 |
[% IF CAN_user_acquisition_merge_invoices %] |
142 |
<li><a href="#closed">Closed invoices ([% closedinvoices.size || 0 | html %]) </a></li> |
| 143 |
<td>[% invoice.is_linked_to_subscriptions | html %]</td> |
143 |
</ul> |
| 144 |
[% END %] |
144 |
<div id="opened"> |
| 145 |
<td><input type="checkbox" class="select-invoice" value="[% invoice.invoiceid | html %]" /></td> |
145 |
[% IF openedinvoices %] |
| 146 |
<td><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid | uri %]">[% invoice.invoicenumber | html %]</a></td> |
146 |
[% INCLUDE invoices_table invoices = openedinvoices %] |
| 147 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% invoice.booksellerid | uri %]">[% invoice.suppliername | html %]</a></td> |
147 |
[% ELSE %] |
| 148 |
<td data-order="[% invoice.shipmentdate | html %]"> |
148 |
<div class="dialog message"> |
| 149 |
[% invoice.shipmentdate | $KohaDates %] |
149 |
<p>Your search returned no open invoices.</p> |
| 150 |
</td> |
150 |
</div> |
| 151 |
<td data-order="[% invoice.billingdate | html %]"> |
151 |
[% END %] |
| 152 |
[% invoice.billingdate | $KohaDates %] |
152 |
</div> <!-- opened --> |
| 153 |
</td> |
153 |
<div id="closed"> |
| 154 |
<td>[% invoice.receivedbiblios | html %]</td> |
154 |
[% IF closedinvoices %] |
| 155 |
<td>[% invoice.receiveditems | html %]</td> |
155 |
[% INCLUDE invoices_table invoices = closedinvoices closed = 1 %] |
| 156 |
<td> |
156 |
[% ELSE %] |
| 157 |
[% IF invoice.closedate %] |
157 |
<div class="dialog message"> |
| 158 |
<span>Closed on [% invoice.closedate | $KohaDates %]</span> |
158 |
<p>Your search returned no closed invoices.</p> |
| 159 |
[% ELSE %] |
159 |
</div> |
| 160 |
<span>Open</span> |
160 |
[% END %] |
| 161 |
[% END %] |
161 |
</div> <!-- closed --> |
| 162 |
</td> |
162 |
</div> <!-- invoicestabs --> |
| 163 |
<td> |
|
|
| 164 |
|
| 165 |
<div class="btn-group dropup"> |
| 166 |
<a class="btn btn-default btn-xs dropdown-toggle" id="invoiceactions[% invoice.invoiceid | html %]" role="button" data-toggle="dropdown" href="#"> |
| 167 |
Actions <b class="caret"></b> |
| 168 |
</a> |
| 169 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="invoiceactions[% invoice.invoiceid | html %]"> |
| 170 |
<li><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid | uri %]"><i class="fa fa-search"></i> Details</a></li> |
| 171 |
[% IF invoice.closedate %] |
| 172 |
[% IF CAN_user_acquisition_reopen_closed_invoices %] |
| 173 |
<li><a href="invoice.pl?op=reopen&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-refresh"></i> Reopen</a></li> |
| 174 |
[% END %] |
| 175 |
[% ELSE %] |
| 176 |
[% IF CAN_user_acquisition_edit_invoices %] |
| 177 |
<li><a href="invoice.pl?op=close&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-times-circle"></i> Close</a></li> |
| 178 |
[% END %] |
| 179 |
[% END # /IF invoice.closedate %] |
| 180 |
[% UNLESS invoice.receivedbiblios || invoice.receiveditems %] |
| 181 |
[% IF CAN_user_acquisition_delete_invoices %] |
| 182 |
<li><a href="invoice.pl?op=delete&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]" class="delete_invoice"><i class="fa fa-trash"></i> Delete</a></li> |
| 183 |
[% END %] |
| 184 |
[% END %] |
| 185 |
</ul> |
| 186 |
</div> <!-- /.btn-group dropup --> |
| 187 |
</td> |
| 188 |
</tr> |
| 189 |
[% END # /FOREACH invoice %] |
| 190 |
</tbody> |
| 191 |
</table> <!-- /#[% tab | html %]resultst --> |
| 192 |
|
| 193 |
[% IF CAN_user_acquisition_merge_invoices %] |
| 194 |
[% IF tab == 'closed' %] |
| 195 |
<a class="btn btn-default merge" id="merge_closed" href="#merge_invoices" data-table="closedresultst"><i class="fa fa-compress"></i> Merge selected invoices</a> |
| 196 |
<a class="btn btn-default" id="open_sel" href="#reopen_selected" data-table="closedresultst" data-op="reopen" data-referer="referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-refresh"></i> Reopen selected invoices</a> |
| 197 |
[% ELSE %] |
| 198 |
<a class="btn btn-default merge" id="merge_open" href="#merge_invoices" data-table="openedresultst"><i class="fa fa-compress"></i> Merge selected invoices</a> |
| 199 |
<a class="btn btn-default" id="close_sel" href="#close_selected" data-table="openedresultst" data-op="close" data-referer="referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-times-circle"></i> Close selected invoices</a> |
| 200 |
[% END # /IF tab == 'closed' %] |
| 201 |
[% END # /IF CAN_user_acquisition_merge_invoices %] |
| 202 |
[% END # /BLOCK invoices_table %] |
| 203 |
|
| 204 |
<div id="invoicestabs" class="toptabs"> |
| 205 |
<ul class="nav nav-tabs" role="tablist"> |
| 206 |
<li role="presentation" class="active"><a href="#opened" aria-controls="opened" role="tab" data-toggle="tab">Open invoices ([% openedinvoices.size || 0 | html %])</a></li> |
| 207 |
<li role="presentation"><a href="#closed" aria-controls="closed" role="tab" data-toggle="tab">Closed invoices ([% closedinvoices.size || 0 | html %]) </a></li> |
| 208 |
</ul> |
| 209 |
<div class="tab-content"> |
| 210 |
<div id="opened" role="tabpanel" class="tab-pane active"> |
| 211 |
[% IF openedinvoices %] |
| 212 |
[% INCLUDE invoices_table invoices = openedinvoices %] |
| 213 |
[% ELSE %] |
| 214 |
<div class="dialog message"> |
| 215 |
<p>Your search returned no open invoices.</p> |
| 216 |
</div> |
| 217 |
[% END %] |
| 218 |
</div> <!-- /#opened --> |
| 219 |
<div id="closed" role="tabpanel" class="tab-pane"> |
| 220 |
[% IF closedinvoices %] |
| 221 |
[% INCLUDE invoices_table invoices = closedinvoices closed = 1 %] |
| 222 |
[% ELSE %] |
| 223 |
<div class="dialog message"> |
| 224 |
<p>Your search returned no closed invoices.</p> |
| 225 |
</div> |
| 226 |
[% END %] |
| 227 |
</div> <!-- /#closed --> |
| 228 |
</div> <!-- /.tab-content --> |
| 229 |
</div> <!-- /#invoicestabs --> |
| 230 |
|
| 231 |
|
| 232 |
<div id="merge_invoices"> |
| 233 |
<form id="merge_invoice_form" action="/cgi-bin/koha/acqui/invoice.pl" method="post"> |
| 234 |
<fieldset class="rows"> |
| 235 |
<ol> |
| 236 |
<li><h2>Merge invoices</h2></li> |
| 237 |
<li> |
| 238 |
<table id="merge_table"> |
| 239 |
<thead> |
| 240 |
<tr> |
| 241 |
<th>Invoice number</th> |
| 242 |
<th>Shipment date</th> |
| 243 |
<th>Billing date</th> |
| 244 |
<th>Shipment cost</th> |
| 245 |
</tr> |
| 246 |
</thead> |
| 247 |
<tbody> |
| 248 |
</tbody> |
| 249 |
</table> |
| 250 |
</li> |
| 251 |
|
| 252 |
<li> |
| 253 |
<label for="merge_invoicenumber" class="required">Invoice number:</label> |
| 254 |
<input type="text" size="10" id="merge_invoicenumber" name="invoicenumber" value="" class="required" required="required" /> |
| 255 |
<span class="required">Required</span> |
| 256 |
</li> |
| 257 |
|
163 |
|
| 258 |
<li> |
|
|
| 259 |
<label for="merge_shipmentdate">Shipment date:</label> |
| 260 |
<input type="text" size="10" id="merge_shipmentdate" name="shipmentdate" value="" class="flatpickr" /> |
| 261 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 262 |
</li> |
| 263 |
|
164 |
|
| 264 |
<li> |
165 |
<div id="merge_invoices"> |
| 265 |
<label for="merge_billingdate">Billing date:</label> |
166 |
<form id="merge_invoice_form" action="/cgi-bin/koha/acqui/invoice.pl" method="post"> |
| 266 |
<input type="text" size="10" id="merge_billingdate" name="billingdate" value="" class="flatpickr" /> |
167 |
<fieldset class="rows"> |
| 267 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
168 |
<ol> |
| 268 |
</li> |
169 |
<li><h2>Merge invoices</h2></li> |
|
|
170 |
<li><table id="merge_table"> |
| 171 |
<thead><tr><th>Invoice number</th><th>Shipment date</th><th>Billing date</th><th>Shipment cost</th></tr></thead> |
| 172 |
<tbody> |
| 173 |
</tbody> |
| 174 |
</table></li> |
| 175 |
<li><label for="merge_invoicenumber" class="required">Invoice number:</label> |
| 176 |
<input type="text" size="10" id="merge_invoicenumber" name="invoicenumber" value="" class="required" required="required" /> |
| 177 |
<span class="required">Required</span> |
| 178 |
</li> |
| 179 |
<li> |
| 180 |
<label for="merge_shipmentdate">Shipment date:</label> |
| 181 |
<input type="text" size="10" id="merge_shipmentdate" name="shipmentdate" value="" class="flatpickr" /> |
| 182 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 183 |
</li> |
| 269 |
|
184 |
|
| 270 |
<<<<<<< HEAD |
185 |
<li> |
| 271 |
<li> |
186 |
<label for="merge_billingdate">Billing date:</label> |
| 272 |
<label for="merge_shipmentcost">Shipment cost:</label> |
187 |
<input type="text" size="10" id="merge_billingdate" name="billingdate" value="" class="flatpickr" /> |
| 273 |
<input type="text" size="10" id="merge_shipmentcost" name="shipmentcost" value="" /> |
188 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 274 |
</li> |
189 |
</li> |
| 275 |
<li> |
|
|
| 276 |
<label for="merge_shipment_budgetid">Fund:</label> |
| 277 |
<select id="merge_shipment_budgetid" name="shipment_budget_id"> |
| 278 |
<option value="">No fund</option> |
| 279 |
[% FOREACH budget IN budgets_loop %] |
| 280 |
<option value="[% budget.budget_id | html %]">[% budget.budget_name | html %]</option> |
| 281 |
[% END %] |
| 282 |
</select> |
| 283 |
</li> |
| 284 |
|
190 |
|
| 285 |
<li> |
191 |
<li> |
| 286 |
<span class="label">Status:</span> <span id="merge_status"></span> |
192 |
<span class="label">Status:</span> <span id="merge_status"></span> |
|
Lines 340-476
Link Here
|
| 340 |
</li> |
246 |
</li> |
| 341 |
[% END %] |
247 |
[% END %] |
| 342 |
[% END %] |
248 |
[% END %] |
| 343 |
[% IF ( isbneanissn ) %] |
249 |
</select></li> |
| 344 |
<li>ISBN/EAN/ISSN: [% isbneanissn | html %]</li> |
250 |
|
| 345 |
[% END %] |
251 |
<li><span class="label">Status:</span> <span id="merge_status"></span></li> |
| 346 |
[% IF ( title ) %] |
252 |
<li><input type="submit" value="Merge" /></li> |
| 347 |
<li>Title: [% title | html %]</li> |
253 |
</ol> |
| 348 |
[% END %] |
254 |
<input type="hidden" name="op" value="mod" /> |
| 349 |
[% IF ( author ) %] |
255 |
<input type="hidden" id="merge_invoiceid" name="invoiceid" value="" /> |
| 350 |
<li>Author: [% author | html %]</li> |
256 |
</fieldset> |
| 351 |
[% END %] |
257 |
</form> |
| 352 |
[% IF ( publisher ) %] |
258 |
</div> |
| 353 |
<li>Publisher: [% publisher | html %]</li> |
259 |
[% ELSE %] |
| 354 |
[% END %] |
260 |
<p>Sorry, but there are no results for your search.</p> |
| 355 |
[% IF ( publicationyear ) %] |
261 |
<p>Search was: |
| 356 |
<li>Publication year: [% publicationyear | html %]</li> |
262 |
<ul> |
| 357 |
[% END %] |
263 |
[% IF ( invoicenumber ) %] |
| 358 |
[% IF ( branch ) %] |
264 |
<li>Invoice number: [% invoicenumber | html %]</li> |
| 359 |
<li>Library: [% Branches.GetName( branch ) | html %]</li> |
265 |
[% END %] |
| 360 |
[% END %] |
266 |
[% IF booksellerid %] |
| 361 |
</ul> |
267 |
<li>Vendor: [% suppliername | html %]</li> |
| 362 |
</p> |
268 |
[% END %] |
| 363 |
[% END # /IF invoices %] |
269 |
[% IF shipmentdatefrom %] |
|
|
270 |
<li>Shipment date: |
| 271 |
[% IF shipmentdateto %] |
| 272 |
From [% shipmentdatefrom | $KohaDates %] |
| 273 |
To [% shipmentdateto | $KohaDates %] |
| 364 |
[% ELSE %] |
274 |
[% ELSE %] |
| 365 |
<p>Use the search form on the left to find invoices.</p> |
275 |
All since [% shipmentdatefrom | $KohaDates %] |
| 366 |
[% END %]<!-- do_search --> |
276 |
[% END %] |
| 367 |
</main> |
277 |
</li> |
| 368 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
278 |
[% ELSE %] |
|
|
279 |
[% IF shipmentdateto %] |
| 280 |
<li>Shipment date: |
| 281 |
All until [% shipmentdateto | $KohaDates %] |
| 282 |
</li> |
| 283 |
[% END %] |
| 284 |
[% END %] |
| 285 |
[% IF billingdatefrom %] |
| 286 |
<li>Billing date: |
| 287 |
[% IF billingdateto %] |
| 288 |
From [% billingdatefrom | $KohaDates %] |
| 289 |
To [% billingdateto | $KohaDates %] |
| 290 |
[% ELSE %] |
| 291 |
All since [% billingdatefrom | $KohaDates %] |
| 292 |
[% END %] |
| 293 |
</li> |
| 294 |
[% ELSE %] |
| 295 |
[% IF billingdateto %] |
| 296 |
<li>Billing date: |
| 297 |
All until [% billingdateto | $KohaDates %] |
| 298 |
</li> |
| 299 |
[% END %] |
| 300 |
[% END %] |
| 301 |
[% IF ( isbneanissn ) %] |
| 302 |
<li>ISBN/EAN/ISSN: [% isbneanissn | html %]</li> |
| 303 |
[% END %] |
| 304 |
[% IF ( title ) %] |
| 305 |
<li>Title: [% title | html %]</li> |
| 306 |
[% END %] |
| 307 |
[% IF ( author ) %] |
| 308 |
<li>Author: [% author | html %]</li> |
| 309 |
[% END %] |
| 310 |
[% IF ( publisher ) %] |
| 311 |
<li>Publisher: [% publisher | html %]</li> |
| 312 |
[% END %] |
| 313 |
[% IF ( publicationyear ) %] |
| 314 |
<li>Publication year: [% publicationyear | html %]</li> |
| 315 |
[% END %] |
| 316 |
[% IF ( branch ) %] |
| 317 |
<li>Library: [% Branches.GetName( branch ) | html %]</li> |
| 318 |
[% END %] |
| 319 |
</ul> |
| 320 |
</p> |
| 321 |
[% END %]<!-- invoices --> |
| 322 |
[% ELSE %] |
| 323 |
<p>Use the search form on the left to find invoices.</p> |
| 324 |
[% END %]<!-- do_search --> |
| 325 |
</main> |
| 326 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
| 369 |
|
327 |
|
| 370 |
<div class="col-sm-2 col-sm-pull-10"> |
|
|
| 371 |
<aside> |
| 372 |
<form action="" method="get"> |
| 373 |
<fieldset class="sidebar brief"> |
| 374 |
<h3>Search filters</h3> |
| 375 |
<ol> |
| 376 |
<li> |
| 377 |
<label for="invoicenumber">Invoice number</label> |
| 378 |
<input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber | html %]" |
| 379 |
class="focus" /> |
| 380 |
</li> |
| 381 |
<li> |
| 382 |
<label for="supplier">Vendor:</label> |
| 383 |
<select id="supplier" name="supplierid"> |
| 384 |
<option value="">All</option> |
| 385 |
[% FOREACH supplier IN suppliers_loop %] |
| 386 |
[% IF ( supplier.selected ) %] |
| 387 |
<option selected="selected" value="[% supplier.booksellerid | html %]">[% supplier.suppliername | html %]</option> |
| 388 |
[% ELSE %] |
| 389 |
<option value="[% supplier.booksellerid | html %]">[% supplier.suppliername | html %]</option> |
| 390 |
[% END %] |
| 391 |
[% END %] |
| 392 |
</select> |
| 393 |
</li> |
| 394 |
<li> |
| 395 |
<fieldset class="brief"> |
| 396 |
<legend>Shipment date</legend> |
| 397 |
<ol> |
| 398 |
<li> |
| 399 |
<label for="shipmentdatefrom">From:</label> |
| 400 |
<input type="text" id="shipmentdatefrom" name="shipmentdatefrom" size="10" value="[% shipmentdatefrom | $KohaDates %]" class="flatpickr" data-date_to="shipmentdateto" /> |
| 401 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 402 |
</li> |
| 403 |
<li> |
| 404 |
<label for="shipmentdateto">To:</label> |
| 405 |
<input type="text" id="shipmentdateto" name="shipmentdateto" size="10" value="[% shipmentdateto | $KohaDates %]" class="flatpickr" /> |
| 406 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 407 |
</li> |
| 408 |
</ol> |
| 409 |
</fieldset> |
| 410 |
</li> |
| 411 |
<li> |
| 412 |
<fieldset class="brief"> |
| 413 |
<legend>Billing date</legend> |
| 414 |
<ol> |
| 415 |
<li> |
| 416 |
<label for="billingdatefrom">From:</label> |
| 417 |
<input type="text" id="billingdatefrom" name="billingdatefrom" size="10" value="[% billingdatefrom | $KohaDates %]" class="flatpickr" data-date_to="billingdateto" /> |
| 418 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 419 |
</li> |
| 420 |
<li> |
| 421 |
<label for="billingdateto">To:</label> |
| 422 |
<input type="text" id="billingdateto" name="billingdateto" size="10" value="[% billingdateto | $KohaDates %]" class="flatpickr" /> |
| 423 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 424 |
</li> |
| 425 |
</ol> |
| 426 |
</fieldset> |
| 427 |
</li> |
| 428 |
<li> |
| 429 |
<label for="isbneanissn">ISBN / EAN / ISSN:</label> |
| 430 |
<input type="text" id="isbneanissn" name="isbneanissn" value="[% isbneanissn | html %]" /> |
| 431 |
</li> |
| 432 |
<li> |
| 433 |
<label for="title">Title:</label> |
| 434 |
<input type="text" id="title" name="title" value="[% title | html %]" /> |
| 435 |
</li> |
| 436 |
<li> |
| 437 |
<label for="author">Author:</label> |
| 438 |
<input type="text" id="author" name="author" value="[% author | html %]" /> |
| 439 |
</li> |
| 440 |
<li> |
| 441 |
<label for="publisher">Publisher:</label> |
| 442 |
<input type="text" id="publisher" name="publisher" value="[% publisher | html %]" /> |
| 443 |
</li> |
| 444 |
<li> |
| 445 |
<label for="publicationyear">Publication year:</label> |
| 446 |
<input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear | html %]" /> |
| 447 |
</li> |
| 448 |
<li> |
| 449 |
<label for="branch">Library:</label> |
| 450 |
<select id="branch" name="branch"> |
| 451 |
<option value="">All</option> |
| 452 |
[%# FIXME Should not we filter the libraries %] |
| 453 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch, unfiltered => 1 ) %] |
| 454 |
</select> |
| 455 |
</li> |
| 456 |
</ol> |
| 457 |
<fieldset class="action"> |
| 458 |
<input type="submit" value="Search" /> |
| 459 |
</fieldset> |
| 460 |
</fieldset> <!-- /.sidebar.brief --> |
| 461 |
<input type="hidden" name="op" id="op" value="do_search" /> |
| 462 |
</form> |
| 463 |
[% INCLUDE 'acquisitions-menu.inc' %] |
| 464 |
</aside> |
| 465 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
| 466 |
</div> <!-- /.row --> |
| 467 |
======= |
| 468 |
<div class="col-sm-2 col-sm-pull-10"> |
328 |
<div class="col-sm-2 col-sm-pull-10"> |
| 469 |
<aside> |
329 |
<aside> |
| 470 |
<div id="filters"> |
330 |
<div id="filters"> |
| 471 |
<form action="" method="get"> |
331 |
<form action="" method="get"> |
| 472 |
<fieldset class="sidebar brief"> |
332 |
<fieldset class="sidebar brief"> |
| 473 |
<h4>Search filters</h4> |
333 |
<h3>Search filters</h3> |
| 474 |
<ol> |
334 |
<ol> |
| 475 |
<li> |
335 |
<li> |
| 476 |
<p for="invoicenumber">Invoice number |
336 |
<p for="invoicenumber">Invoice number |
|
Lines 563-569
Link Here
|
| 563 |
</aside> |
423 |
</aside> |
| 564 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
424 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
| 565 |
</div> <!-- /.row --> |
425 |
</div> <!-- /.row --> |
| 566 |
>>>>>>> Bug 30952: Search bar |
|
|
| 567 |
|
426 |
|
| 568 |
[% MACRO jsinclude BLOCK %] |
427 |
[% MACRO jsinclude BLOCK %] |
| 569 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
428 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
|
Lines 571-589
Link Here
|
| 571 |
[% INCLUDE 'calendar.inc' %] |
430 |
[% INCLUDE 'calendar.inc' %] |
| 572 |
<script> |
431 |
<script> |
| 573 |
$(document).ready(function() { |
432 |
$(document).ready(function() { |
| 574 |
$('[id^="CheckAll"]').click( function() { |
433 |
$('#invoicestabs').tabs(); |
| 575 |
var table_id = "#" + $(this).attr('data-cb') + "resultst"; |
|
|
| 576 |
$(table_id).find('.select-invoice[type="checkbox"]').each( function() { |
| 577 |
$(this).prop("checked" , true ); |
| 578 |
}); |
| 579 |
}); |
| 580 |
$('[id^="UncheckAll"]').click( function() { |
| 581 |
var table_id = "#" + $(this).attr('data-cb') + "resultst"; |
| 582 |
$(table_id).find('.select-invoice[type="checkbox"]').each( function() { |
| 583 |
$(this).prop("checked" , false ); |
| 584 |
}); |
| 585 |
}); |
| 586 |
|
| 587 |
$(".delete_invoice").click(function(){ |
434 |
$(".delete_invoice").click(function(){ |
| 588 |
return confirmDelete(_("Are you sure you want to delete this invoice?")); |
435 |
return confirmDelete(_("Are you sure you want to delete this invoice?")); |
| 589 |
}); |
436 |
}); |