Lines 105-123
Link Here
|
105 |
[% IF CAN_user_acquisition_edit_invoices %] |
105 |
[% IF CAN_user_acquisition_edit_invoices %] |
106 |
<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> |
106 |
<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> |
107 |
[% END %] |
107 |
[% END %] |
108 |
[% END %] |
108 |
[% END # /IF invoice.closedate %] |
109 |
[% UNLESS invoice.receivedbiblios || invoice.receiveditems %] |
109 |
[% UNLESS invoice.receivedbiblios || invoice.receiveditems %] |
110 |
[% IF CAN_user_acquisition_delete_invoices %] |
110 |
[% IF CAN_user_acquisition_delete_invoices %] |
111 |
<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> |
111 |
<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> |
112 |
[% END %] |
112 |
[% END %] |
113 |
[% END %] |
113 |
[% END %] |
114 |
</ul> |
114 |
</ul> |
115 |
</div> |
115 |
</div> <!-- /.btn-group dropup --> |
116 |
</td> |
116 |
</td> |
117 |
</tr> |
117 |
</tr> |
118 |
[% END %] |
118 |
[% END # /FOREACH invoice %] |
119 |
</tbody> |
119 |
</tbody> |
120 |
</table> |
120 |
</table> <!-- /#[% tab | html %]resultst --> |
121 |
|
121 |
|
122 |
[% IF CAN_user_acquisition_merge_invoices %] |
122 |
[% IF CAN_user_acquisition_merge_invoices %] |
123 |
[% IF tab == 'closed' %] |
123 |
[% IF tab == 'closed' %] |
Lines 126-134
Link Here
|
126 |
[% ELSE %] |
126 |
[% ELSE %] |
127 |
<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> |
127 |
<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> |
128 |
<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> |
128 |
<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> |
129 |
[% END %] |
129 |
[% END # /IF tab == 'closed' %] |
130 |
[% END %] <!-- invoices_table --> |
130 |
[% END # /IF CAN_user_acquisition_merge_invoices %] |
131 |
[% END %] |
131 |
[% END # /BLOCK invoices_table %] |
132 |
|
132 |
|
133 |
<div id="invoicestabs" class="toptabs" style="clear:both;"> |
133 |
<div id="invoicestabs" class="toptabs" style="clear:both;"> |
134 |
<ul class="ui-tabs-nav"> |
134 |
<ul class="ui-tabs-nav"> |
Lines 143-149
Link Here
|
143 |
<p>Your search returned no open invoices.</p> |
143 |
<p>Your search returned no open invoices.</p> |
144 |
</div> |
144 |
</div> |
145 |
[% END %] |
145 |
[% END %] |
146 |
</div> <!-- opened --> |
146 |
</div> <!-- /#opened --> |
147 |
<div id="closed"> |
147 |
<div id="closed"> |
148 |
[% IF closedinvoices %] |
148 |
[% IF closedinvoices %] |
149 |
[% INCLUDE invoices_table invoices = closedinvoices closed = 1 %] |
149 |
[% INCLUDE invoices_table invoices = closedinvoices closed = 1 %] |
Lines 152-159
Link Here
|
152 |
<p>Your search returned no closed invoices.</p> |
152 |
<p>Your search returned no closed invoices.</p> |
153 |
</div> |
153 |
</div> |
154 |
[% END %] |
154 |
[% END %] |
155 |
</div> <!-- closed --> |
155 |
</div> <!-- /#closed --> |
156 |
</div> <!-- invoicestabs --> |
156 |
</div> <!-- /#invoicestabs --> |
157 |
|
157 |
|
158 |
|
158 |
|
159 |
<div id="merge_invoices"> |
159 |
<div id="merge_invoices"> |
Lines 217-226
Link Here
|
217 |
</ol> |
217 |
</ol> |
218 |
<input type="hidden" name="op" value="mod" /> |
218 |
<input type="hidden" name="op" value="mod" /> |
219 |
<input type="hidden" id="merge_invoiceid" name="invoiceid" value="" /> |
219 |
<input type="hidden" id="merge_invoiceid" name="invoiceid" value="" /> |
220 |
</fieldset> |
220 |
</fieldset> <!-- /.rows --> |
221 |
</form> |
221 |
</form> <!-- /#merge_invoice_form --> |
222 |
</div> |
222 |
</div> <!-- /#merge_invoices --> |
223 |
[% ELSE %] |
223 |
[% ELSE # IF invoices %] |
224 |
<p>Sorry, but there are no results for your search.</p> |
224 |
<p>Sorry, but there are no results for your search.</p> |
225 |
<p>Search was: |
225 |
<p>Search was: |
226 |
<ul> |
226 |
<ul> |
Lines 286-292
Link Here
|
286 |
[% END %] |
286 |
[% END %] |
287 |
</ul> |
287 |
</ul> |
288 |
</p> |
288 |
</p> |
289 |
[% END %]<!-- invoices --> |
289 |
[% END # /IF invoices %] |
290 |
[% ELSE %] |
290 |
[% ELSE %] |
291 |
<p>Use the search form on the left to find invoices.</p> |
291 |
<p>Use the search form on the left to find invoices.</p> |
292 |
[% END %]<!-- do_search --> |
292 |
[% END %]<!-- do_search --> |
Lines 383-389
Link Here
|
383 |
<fieldset class="action"> |
383 |
<fieldset class="action"> |
384 |
<input type="submit" value="Search" /> |
384 |
<input type="submit" value="Search" /> |
385 |
</fieldset> |
385 |
</fieldset> |
386 |
</fieldset> |
386 |
</fieldset> <!-- /.sidebar.brief --> |
387 |
<input type="hidden" name="op" id="op" value="do_search" /> |
387 |
<input type="hidden" name="op" id="op" value="do_search" /> |
388 |
</form> |
388 |
</form> |
389 |
[% INCLUDE 'acquisitions-menu.inc' %] |
389 |
[% INCLUDE 'acquisitions-menu.inc' %] |
390 |
- |
|
|