Lines 35-369
Link Here
|
35 |
|
35 |
|
36 |
[% INCLUDE 'blocking_errors.inc' %] |
36 |
[% INCLUDE 'blocking_errors.inc' %] |
37 |
|
37 |
|
38 |
<h1>Invoices</h1> |
38 |
<h1>Invoices</h1> |
39 |
[% IF ( do_search ) %] |
39 |
[% IF ( do_search ) %] |
40 |
[% IF invoices %] |
40 |
[% IF invoices %] |
41 |
[% BLOCK invoices_table %] |
41 |
[% BLOCK invoices_table %] |
42 |
[% IF closed %] |
42 |
[% IF closed %] |
43 |
[% SET tab = 'closed' %] |
43 |
[% SET tab = 'closed' %] |
44 |
[% ELSE %] |
44 |
[% ELSE %] |
45 |
[% SET tab = 'opened' %] |
45 |
[% SET tab = 'opened' %] |
46 |
[% END %] |
46 |
[% END %] |
47 |
<input type="checkbox" style="vertical-align: middle;" id="show_only_subscription_[% tab | html %]" class="show_only_subscription" data-tableid="[% tab | html %]resultst"/> |
47 |
<input type="checkbox" style="vertical-align: middle;" id="show_only_subscription_[% tab | html %]" class="show_only_subscription" data-tableid="[% tab | html %]resultst"/> |
48 |
<label for="show_only_subscription_[% tab | html %]"> |
48 |
<label for="show_only_subscription_[% tab | html %]"> |
49 |
Show only subscriptions |
49 |
Show only subscriptions |
50 |
</label> |
50 |
</label> |
51 |
<table id="[% tab | html %]resultst" class="result"> |
51 |
<table id="[% tab | html %]resultst" class="result"> |
52 |
<thead> |
52 |
<thead> |
53 |
<tr> |
53 |
<tr> |
54 |
[% IF CAN_user_acquisition_merge_invoices %] |
54 |
[% IF CAN_user_acquisition_merge_invoices %] |
55 |
<th> </th> |
55 |
<th> </th> |
56 |
[% END %] |
56 |
[% END %] |
57 |
<th> </th> |
57 |
<th> </th> |
58 |
<th>Invoice number</th> |
58 |
<th>Invoice number</th> |
59 |
<th>Vendor</th> |
59 |
<th>Vendor</th> |
60 |
<th>Shipment date</th> |
60 |
<th>Shipment date</th> |
61 |
<th>Billing date</th> |
61 |
<th>Billing date</th> |
62 |
<th>Received bibliographic records</th> |
62 |
<th>Received bibliographic records</th> |
63 |
<th>Received items</th> |
63 |
<th>Received items</th> |
64 |
<th>Status</th> |
64 |
<th>Status</th> |
65 |
<th> </th> |
65 |
<th> </th> |
66 |
</tr> |
66 |
</tr> |
67 |
</thead> |
67 |
</thead> |
68 |
<tbody> |
68 |
<tbody> |
69 |
[% FOREACH invoice IN invoices %] |
69 |
[% FOREACH invoice IN invoices %] |
70 |
<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 %]"> |
70 |
<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 %]"> |
71 |
[% IF CAN_user_acquisition_merge_invoices %] |
71 |
[% IF CAN_user_acquisition_merge_invoices %] |
72 |
<td>[% invoice.is_linked_to_subscriptions | html %]</td> |
72 |
<td>[% invoice.is_linked_to_subscriptions | html %]</td> |
73 |
[% END %] |
73 |
[% END %] |
74 |
<td><input type="checkbox" class="select-invoice" value="[% invoice.invoiceid | html %]" /></td> |
74 |
<td><input type="checkbox" class="select-invoice" value="[% invoice.invoiceid | html %]" /></td> |
75 |
<td><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid | uri %]">[% invoice.invoicenumber | html %]</a></td> |
75 |
<td><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid | uri %]">[% invoice.invoicenumber | html %]</a></td> |
76 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% invoice.booksellerid | uri %]">[% invoice.suppliername | html %]</a></td> |
76 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% invoice.booksellerid | uri %]">[% invoice.suppliername | html %]</a></td> |
77 |
<td data-order="[% invoice.shipmentdate | html %]"> |
77 |
<td data-order="[% invoice.shipmentdate | html %]"> |
78 |
[% invoice.shipmentdate | $KohaDates %] |
78 |
[% invoice.shipmentdate | $KohaDates %] |
79 |
</td> |
79 |
</td> |
80 |
<td data-order="[% invoice.billingdate | html %]"> |
80 |
<td data-order="[% invoice.billingdate | html %]"> |
81 |
[% invoice.billingdate | $KohaDates %] |
81 |
[% invoice.billingdate | $KohaDates %] |
82 |
</td> |
82 |
</td> |
83 |
<td>[% invoice.receivedbiblios | html %]</td> |
83 |
<td>[% invoice.receivedbiblios | html %]</td> |
84 |
<td>[% invoice.receiveditems | html %]</td> |
84 |
<td>[% invoice.receiveditems | html %]</td> |
85 |
<td> |
85 |
<td> |
86 |
[% IF invoice.closedate %] |
86 |
[% IF invoice.closedate %] |
87 |
Closed on [% invoice.closedate | $KohaDates %] |
87 |
Closed on [% invoice.closedate | $KohaDates %] |
88 |
[% ELSE %] |
88 |
[% ELSE %] |
89 |
Open |
89 |
Open |
90 |
[% END %] |
90 |
[% END %] |
91 |
</td> |
91 |
</td> |
92 |
<td> |
92 |
<td> |
|
|
93 |
|
94 |
<div class="btn-group dropup"> |
95 |
<a class="btn btn-default btn-xs dropdown-toggle" id="invoiceactions[% invoice.invoiceid | html %]" role="button" data-toggle="dropdown" href="#"> |
96 |
Actions <b class="caret"></b> |
97 |
</a> |
98 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="invoiceactions[% invoice.invoiceid | html %]"> |
99 |
<li><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid | uri %]"><i class="fa fa-search"></i> Details</a></li> |
100 |
[% IF invoice.closedate %] |
101 |
[% IF CAN_user_acquisition_reopen_closed_invoices %] |
102 |
<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> |
103 |
[% END %] |
104 |
[% ELSE %] |
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> |
107 |
[% END %] |
108 |
[% END %] |
109 |
[% UNLESS invoice.receivedbiblios || invoice.receiveditems %] |
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> |
112 |
[% END %] |
113 |
[% END %] |
114 |
</ul> |
115 |
</div> |
116 |
</td> |
117 |
</tr> |
118 |
[% END %] |
119 |
</tbody> |
120 |
</table> |
93 |
|
121 |
|
94 |
<div class="btn-group dropup"> |
122 |
[% IF CAN_user_acquisition_merge_invoices %] |
95 |
<a class="btn btn-default btn-xs dropdown-toggle" id="invoiceactions[% invoice.invoiceid | html %]" role="button" data-toggle="dropdown" href="#"> |
123 |
[% IF tab == 'closed' %] |
96 |
Actions <b class="caret"></b> |
124 |
<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> |
97 |
</a> |
125 |
<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> |
98 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="invoiceactions[% invoice.invoiceid | html %]"> |
126 |
[% ELSE %] |
99 |
<li><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid | uri %]"><i class="fa fa-search"></i> Details</a></li> |
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> |
100 |
[% IF invoice.closedate %] |
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> |
101 |
[% IF CAN_user_acquisition_reopen_closed_invoices %] |
|
|
102 |
<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> |
103 |
[% END %] |
129 |
[% END %] |
104 |
[% ELSE %] |
130 |
[% END %] <!-- invoices_table --> |
105 |
[% IF CAN_user_acquisition_edit_invoices %] |
131 |
[% END %] |
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> |
132 |
|
|
|
133 |
<div id="invoicestabs" class="toptabs" style="clear:both;"> |
134 |
<ul class="ui-tabs-nav"> |
135 |
<li><a href="#opened">Open invoices ([% openedinvoices.size || 0 | html %])</a></li> |
136 |
<li><a href="#closed">Closed invoices ([% closedinvoices.size || 0 | html %]) </a></li> |
137 |
</ul> |
138 |
<div id="opened"> |
139 |
[% IF openedinvoices %] |
140 |
[% INCLUDE invoices_table invoices = openedinvoices %] |
141 |
[% ELSE %] |
142 |
<div class="dialog message"> |
143 |
<p>Your search returned no open invoices.</p> |
144 |
</div> |
107 |
[% END %] |
145 |
[% END %] |
108 |
[% END %] |
146 |
</div> <!-- opened --> |
109 |
[% UNLESS invoice.receivedbiblios || invoice.receiveditems %] |
147 |
<div id="closed"> |
110 |
[% IF CAN_user_acquisition_delete_invoices %] |
148 |
[% IF closedinvoices %] |
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> |
149 |
[% INCLUDE invoices_table invoices = closedinvoices closed = 1 %] |
|
|
150 |
[% ELSE %] |
151 |
<div class="dialog message"> |
152 |
<p>Your search returned no closed invoices.</p> |
153 |
</div> |
112 |
[% END %] |
154 |
[% END %] |
113 |
[% END %] |
155 |
</div> <!-- closed --> |
114 |
</ul> |
156 |
</div> <!-- invoicestabs --> |
115 |
</div> |
|
|
116 |
</td> |
117 |
</tr> |
118 |
[% END %] |
119 |
</tbody> |
120 |
</table> |
121 |
[% IF CAN_user_acquisition_merge_invoices %] |
122 |
[% IF tab == 'closed' %] |
123 |
<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> |
124 |
<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> |
125 |
[% ELSE %] |
126 |
<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" 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 |
[% END %] |
129 |
[% END %] <!-- invoices_table --> |
130 |
[% END %] |
131 |
<div id="invoicestabs" class="toptabs" style="clear:both;"> |
132 |
<ul class="ui-tabs-nav"> |
133 |
<li><a href="#opened">Open invoices ([% openedinvoices.size || 0 | html %])</a></li> |
134 |
<li><a href="#closed">Closed invoices ([% closedinvoices.size || 0 | html %]) </a></li> |
135 |
</ul> |
136 |
<div id="opened"> |
137 |
[% IF openedinvoices %] |
138 |
[% INCLUDE invoices_table invoices = openedinvoices %] |
139 |
[% ELSE %] |
140 |
<div class="dialog message"> |
141 |
<p>Your search returned no open invoices.</p> |
142 |
</div> |
143 |
[% END %] |
144 |
</div> <!-- opened --> |
145 |
<div id="closed"> |
146 |
[% IF closedinvoices %] |
147 |
[% INCLUDE invoices_table invoices = closedinvoices closed = 1 %] |
148 |
[% ELSE %] |
149 |
<div class="dialog message"> |
150 |
<p>Your search returned no closed invoices.</p> |
151 |
</div> |
152 |
[% END %] |
153 |
</div> <!-- closed --> |
154 |
</div> <!-- invoicestabs --> |
155 |
|
157 |
|
156 |
|
158 |
|
157 |
<div id="merge_invoices"> |
159 |
<div id="merge_invoices"> |
158 |
<form id="merge_invoice_form" action="/cgi-bin/koha/acqui/invoice.pl" method="post"> |
160 |
<form id="merge_invoice_form" action="/cgi-bin/koha/acqui/invoice.pl" method="post"> |
159 |
<fieldset class="rows"> |
161 |
<fieldset class="rows"> |
160 |
<ol> |
162 |
<ol> |
161 |
<li><h2>Merge invoices</h2></li> |
163 |
<li><h2>Merge invoices</h2></li> |
162 |
<li><table id="merge_table"> |
164 |
<li> |
163 |
<thead><tr><th>Invoice number</th><th>Shipment date</th><th>Billing date</th><th>Shipment cost</th></tr></thead> |
165 |
<table id="merge_table"> |
164 |
<tbody> |
166 |
<thead> |
165 |
</tbody> |
167 |
<tr> |
166 |
</table></li> |
168 |
<th>Invoice number</th> |
167 |
<li><label for="merge_invoicenumber" class="required">Invoice number:</label> |
169 |
<th>Shipment date</th> |
168 |
<input type="text" size="10" id="merge_invoicenumber" name="invoicenumber" value="" class="required" required="required" /> |
170 |
<th>Billing date</th> |
169 |
<span class="required">Required</span> |
171 |
<th>Shipment cost</th> |
170 |
</li> |
172 |
</tr> |
171 |
<li> |
173 |
</thead> |
172 |
<label for="merge_shipmentdate">Shipment date:</label> |
174 |
<tbody> |
173 |
<input type="text" size="10" id="merge_shipmentdate" name="shipmentdate" value="" class="flatpickr" /> |
175 |
</tbody> |
174 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
176 |
</table> |
175 |
</li> |
177 |
</li> |
176 |
|
178 |
|
177 |
<li> |
179 |
<li> |
178 |
<label for="merge_billingdate">Billing date:</label> |
180 |
<label for="merge_invoicenumber" class="required">Invoice number:</label> |
179 |
<input type="text" size="10" id="merge_billingdate" name="billingdate" value="" class="flatpickr" /> |
181 |
<input type="text" size="10" id="merge_invoicenumber" name="invoicenumber" value="" class="required" required="required" /> |
180 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
182 |
<span class="required">Required</span> |
181 |
</li> |
183 |
</li> |
182 |
|
184 |
|
183 |
<li><label for="merge_shipmentcost">Shipment cost:</label> |
185 |
<li> |
184 |
<input type="text" size="10" id="merge_shipmentcost" name="shipmentcost" value="" /></li> |
186 |
<label for="merge_shipmentdate">Shipment date:</label> |
185 |
<li><label for="merge_shipment_budgetid">Fund:</label> |
187 |
<input type="text" size="10" id="merge_shipmentdate" name="shipmentdate" value="" class="flatpickr" /> |
186 |
<select id="merge_shipment_budgetid" name="shipment_budget_id"> |
188 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
187 |
<option value="">No fund</option> |
189 |
</li> |
188 |
[% FOREACH budget IN budgets_loop %] |
|
|
189 |
<option value="[% budget.budget_id | html %]">[% budget.budget_name | html %] |
190 |
</option> |
191 |
[% END %] |
192 |
</select></li> |
193 |
|
190 |
|
194 |
<li><span class="label">Status:</span> <span id="merge_status"></span></li> |
191 |
<li> |
195 |
<li><input type="submit" value="Merge" /></li> |
192 |
<label for="merge_billingdate">Billing date:</label> |
196 |
</ol> |
193 |
<input type="text" size="10" id="merge_billingdate" name="billingdate" value="" class="flatpickr" /> |
197 |
<input type="hidden" name="op" value="mod" /> |
194 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
198 |
<input type="hidden" id="merge_invoiceid" name="invoiceid" value="" /> |
195 |
</li> |
199 |
</fieldset> |
|
|
200 |
</form> |
201 |
</div> |
202 |
[% ELSE %] |
203 |
<p>Sorry, but there are no results for your search.</p> |
204 |
<p>Search was: |
205 |
<ul> |
206 |
[% IF ( invoicenumber ) %] |
207 |
<li>Invoice number: [% invoicenumber | html %]</li> |
208 |
[% END %] |
209 |
[% IF booksellerid %] |
210 |
<li>Vendor: [% suppliername | html %]</li> |
211 |
[% END %] |
212 |
[% IF shipmentdatefrom %] |
213 |
<li>Shipment date: |
214 |
[% IF shipmentdateto %] |
215 |
From [% shipmentdatefrom | $KohaDates %] |
216 |
To [% shipmentdateto | $KohaDates %] |
217 |
[% ELSE %] |
218 |
All since [% shipmentdatefrom | $KohaDates %] |
219 |
[% END %] |
220 |
</li> |
221 |
[% ELSE %] |
222 |
[% IF shipmentdateto %] |
223 |
<li>Shipment date: |
224 |
All until [% shipmentdateto | $KohaDates %] |
225 |
</li> |
226 |
[% END %] |
227 |
[% END %] |
228 |
[% IF billingdatefrom %] |
229 |
<li>Billing date: |
230 |
[% IF billingdateto %] |
231 |
From [% billingdatefrom | $KohaDates %] |
232 |
To [% billingdateto | $KohaDates %] |
233 |
[% ELSE %] |
234 |
All since [% billingdatefrom | $KohaDates %] |
235 |
[% END %] |
236 |
</li> |
237 |
[% ELSE %] |
238 |
[% IF billingdateto %] |
239 |
<li>Billing date: |
240 |
All until [% billingdateto | $KohaDates %] |
241 |
</li> |
242 |
[% END %] |
243 |
[% END %] |
244 |
[% IF ( isbneanissn ) %] |
245 |
<li>ISBN/EAN/ISSN: [% isbneanissn | html %]</li> |
246 |
[% END %] |
247 |
[% IF ( title ) %] |
248 |
<li>Title: [% title | html %]</li> |
249 |
[% END %] |
250 |
[% IF ( author ) %] |
251 |
<li>Author: [% author | html %]</li> |
252 |
[% END %] |
253 |
[% IF ( publisher ) %] |
254 |
<li>Publisher: [% publisher | html %]</li> |
255 |
[% END %] |
256 |
[% IF ( publicationyear ) %] |
257 |
<li>Publication year: [% publicationyear | html %]</li> |
258 |
[% END %] |
259 |
[% IF ( branch ) %] |
260 |
<li>Library: [% Branches.GetName( branch ) | html %]</li> |
261 |
[% END %] |
262 |
</ul> |
263 |
</p> |
264 |
[% END %]<!-- invoices --> |
265 |
[% ELSE %] |
266 |
<p>Use the search form on the left to find invoices.</p> |
267 |
[% END %]<!-- do_search --> |
268 |
</main> |
269 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
270 |
|
196 |
|
271 |
<div class="col-sm-2 col-sm-pull-10"> |
197 |
<li> |
272 |
<aside> |
198 |
<label for="merge_shipmentcost">Shipment cost:</label> |
273 |
<form action="" method="get"> |
199 |
<input type="text" size="10" id="merge_shipmentcost" name="shipmentcost" value="" /> |
274 |
<fieldset class="sidebar brief"> |
200 |
</li> |
275 |
<h3>Search filters</h3> |
201 |
<li> |
276 |
<ol> |
202 |
<label for="merge_shipment_budgetid">Fund:</label> |
277 |
<li> |
203 |
<select id="merge_shipment_budgetid" name="shipment_budget_id"> |
278 |
<label for="invoicenumber">Invoice number</label> |
204 |
<option value="">No fund</option> |
279 |
<input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber | html %]" class="focus" /> |
205 |
[% FOREACH budget IN budgets_loop %] |
280 |
</li> |
206 |
<option value="[% budget.budget_id | html %]">[% budget.budget_name | html %]</option> |
281 |
<li> |
207 |
[% END %] |
282 |
<label for="supplier">Vendor:</label> |
208 |
</select> |
283 |
<select id="supplier" name="supplierid"> |
209 |
</li> |
284 |
<option value="">All</option> |
210 |
|
285 |
[% FOREACH supplier IN suppliers_loop %] |
211 |
<li> |
286 |
[% IF ( supplier.selected ) %] |
212 |
<span class="label">Status:</span> <span id="merge_status"></span> |
287 |
<option selected="selected" value="[% supplier.booksellerid | html %]">[% supplier.suppliername | html %]</option> |
213 |
</li> |
|
|
214 |
<li> |
215 |
<input type="submit" value="Merge" /> |
216 |
</li> |
217 |
</ol> |
218 |
<input type="hidden" name="op" value="mod" /> |
219 |
<input type="hidden" id="merge_invoiceid" name="invoiceid" value="" /> |
220 |
</fieldset> |
221 |
</form> |
222 |
</div> |
223 |
[% ELSE %] |
224 |
<p>Sorry, but there are no results for your search.</p> |
225 |
<p>Search was: |
226 |
<ul> |
227 |
[% IF ( invoicenumber ) %] |
228 |
<li>Invoice number: [% invoicenumber | html %]</li> |
229 |
[% END %] |
230 |
[% IF booksellerid %] |
231 |
<li>Vendor: [% suppliername | html %]</li> |
232 |
[% END %] |
233 |
[% IF shipmentdatefrom %] |
234 |
<li> |
235 |
Shipment date: |
236 |
[% IF shipmentdateto %] |
237 |
From [% shipmentdatefrom | $KohaDates %] |
238 |
To [% shipmentdateto | $KohaDates %] |
239 |
[% ELSE %] |
240 |
All since [% shipmentdatefrom | $KohaDates %] |
241 |
[% END %] |
242 |
</li> |
243 |
[% ELSE %] |
244 |
[% IF shipmentdateto %] |
245 |
<li> |
246 |
Shipment date: |
247 |
All until [% shipmentdateto | $KohaDates %] |
248 |
</li> |
249 |
[% END %] |
250 |
[% END %] |
251 |
[% IF billingdatefrom %] |
252 |
<li> |
253 |
Billing date: |
254 |
[% IF billingdateto %] |
255 |
From [% billingdatefrom | $KohaDates %] |
256 |
To [% billingdateto | $KohaDates %] |
257 |
[% ELSE %] |
258 |
All since [% billingdatefrom | $KohaDates %] |
259 |
[% END %] |
260 |
</li> |
261 |
[% ELSE %] |
262 |
[% IF billingdateto %] |
263 |
<li> |
264 |
Billing date: |
265 |
All until [% billingdateto | $KohaDates %] |
266 |
</li> |
267 |
[% END %] |
268 |
[% END %] |
269 |
[% IF ( isbneanissn ) %] |
270 |
<li>ISBN/EAN/ISSN: [% isbneanissn | html %]</li> |
271 |
[% END %] |
272 |
[% IF ( title ) %] |
273 |
<li>Title: [% title | html %]</li> |
274 |
[% END %] |
275 |
[% IF ( author ) %] |
276 |
<li>Author: [% author | html %]</li> |
277 |
[% END %] |
278 |
[% IF ( publisher ) %] |
279 |
<li>Publisher: [% publisher | html %]</li> |
280 |
[% END %] |
281 |
[% IF ( publicationyear ) %] |
282 |
<li>Publication year: [% publicationyear | html %]</li> |
283 |
[% END %] |
284 |
[% IF ( branch ) %] |
285 |
<li>Library: [% Branches.GetName( branch ) | html %]</li> |
286 |
[% END %] |
287 |
</ul> |
288 |
</p> |
289 |
[% END %]<!-- invoices --> |
288 |
[% ELSE %] |
290 |
[% ELSE %] |
289 |
<option value="[% supplier.booksellerid | html %]">[% supplier.suppliername | html %]</option> |
291 |
<p>Use the search form on the left to find invoices.</p> |
290 |
[% END %] |
292 |
[% END %]<!-- do_search --> |
291 |
[% END %] |
293 |
</main> |
292 |
</select> |
294 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
293 |
</li> |
295 |
|
294 |
<li> |
296 |
<div class="col-sm-2 col-sm-pull-10"> |
295 |
<fieldset class="brief"> |
297 |
<aside> |
296 |
<legend>Shipment date</legend> |
298 |
<form action="" method="get"> |
297 |
<ol> |
299 |
<fieldset class="sidebar brief"> |
298 |
<li> |
300 |
<h3>Search filters</h3> |
299 |
<label for="shipmentdatefrom">From:</label> |
301 |
<ol> |
300 |
<input type="text" id="shipmentdatefrom" name="shipmentdatefrom" size="10" value="[% shipmentdatefrom | $KohaDates %]" class="flatpickr" data-date_to="shipmentdateto" /> |
302 |
<li> |
301 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
303 |
<label for="invoicenumber">Invoice number</label> |
302 |
</li> |
304 |
<input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber | html %]" |
303 |
<li> |
305 |
class="focus" /> |
304 |
<label for="shipmentdateto">To:</label> |
306 |
</li> |
305 |
<input type="text" id="shipmentdateto" name="shipmentdateto" size="10" value="[% shipmentdateto | $KohaDates %]" class="flatpickr" /> |
307 |
<li> |
306 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
308 |
<label for="supplier">Vendor:</label> |
307 |
</li> |
309 |
<select id="supplier" name="supplierid"> |
308 |
</ol> |
310 |
<option value="">All</option> |
309 |
</fieldset> |
311 |
[% FOREACH supplier IN suppliers_loop %] |
310 |
</li> |
312 |
[% IF ( supplier.selected ) %] |
311 |
<li> |
313 |
<option selected="selected" value="[% supplier.booksellerid | html %]">[% supplier.suppliername | html %]</option> |
312 |
<fieldset class="brief"> |
314 |
[% ELSE %] |
313 |
<legend>Billing date</legend> |
315 |
<option value="[% supplier.booksellerid | html %]">[% supplier.suppliername | html %]</option> |
314 |
<ol> |
316 |
[% END %] |
315 |
<li> |
317 |
[% END %] |
316 |
<label for="billingdatefrom">From:</label> |
318 |
</select> |
317 |
<input type="text" id="billingdatefrom" name="billingdatefrom" size="10" value="[% billingdatefrom | $KohaDates %]" class="flatpickr" data-date_to="billingdateto" /> |
319 |
</li> |
318 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
320 |
<li> |
319 |
</li> |
321 |
<fieldset class="brief"> |
320 |
<li> |
322 |
<legend>Shipment date</legend> |
321 |
<label for="billingdateto">To:</label> |
323 |
<ol> |
322 |
<input type="text" id="billingdateto" name="billingdateto" size="10" value="[% billingdateto | $KohaDates %]" class="flatpickr" /> |
324 |
<li> |
323 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
325 |
<label for="shipmentdatefrom">From:</label> |
324 |
</li> |
326 |
<input type="text" id="shipmentdatefrom" name="shipmentdatefrom" size="10" value="[% shipmentdatefrom | $KohaDates %]" class="flatpickr" data-date_to="shipmentdateto" /> |
325 |
</ol> |
327 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
326 |
</fieldset> |
328 |
</li> |
327 |
</li> |
329 |
<li> |
328 |
<li> |
330 |
<label for="shipmentdateto">To:</label> |
329 |
<label for="isbneanissn">ISBN / EAN / ISSN:</label> |
331 |
<input type="text" id="shipmentdateto" name="shipmentdateto" size="10" value="[% shipmentdateto | $KohaDates %]" class="flatpickr" /> |
330 |
<input type="text" id="isbneanissn" name="isbneanissn" value="[% isbneanissn | html %]" /> |
332 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
331 |
</li> |
333 |
</li> |
332 |
<li> |
334 |
</ol> |
333 |
<label for="title">Title:</label> |
335 |
</fieldset> |
334 |
<input type="text" id="title" name="title" value="[% title | html %]" /> |
336 |
</li> |
335 |
</li> |
337 |
<li> |
336 |
<li> |
338 |
<fieldset class="brief"> |
337 |
<label for="author">Author:</label> |
339 |
<legend>Billing date</legend> |
338 |
<input type="text" id="author" name="author" value="[% author | html %]" /> |
340 |
<ol> |
339 |
</li> |
341 |
<li> |
340 |
<li> |
342 |
<label for="billingdatefrom">From:</label> |
341 |
<label for="publisher">Publisher:</label> |
343 |
<input type="text" id="billingdatefrom" name="billingdatefrom" size="10" value="[% billingdatefrom | $KohaDates %]" class="flatpickr" data-date_to="billingdateto" /> |
342 |
<input type="text" id="publisher" name="publisher" value="[% publisher | html %]" /> |
344 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
343 |
</li> |
345 |
</li> |
344 |
<li> |
346 |
<li> |
345 |
<label for="publicationyear">Publication year:</label> |
347 |
<label for="billingdateto">To:</label> |
346 |
<input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear | html %]" /> |
348 |
<input type="text" id="billingdateto" name="billingdateto" size="10" value="[% billingdateto | $KohaDates %]" class="flatpickr" /> |
347 |
</li> |
349 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
348 |
<li> |
350 |
</li> |
349 |
<label for="branch">Library:</label> |
351 |
</ol> |
350 |
<select id="branch" name="branch"> |
352 |
</fieldset> |
351 |
<option value="">All</option> |
353 |
</li> |
352 |
[%# FIXME Should not we filter the libraries %] |
354 |
<li> |
353 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch, unfiltered => 1 ) %] |
355 |
<label for="isbneanissn">ISBN / EAN / ISSN:</label> |
354 |
</select> |
356 |
<input type="text" id="isbneanissn" name="isbneanissn" value="[% isbneanissn | html %]" /> |
355 |
</li> |
357 |
</li> |
356 |
</ol> |
358 |
<li> |
357 |
<fieldset class="action"> |
359 |
<label for="title">Title:</label> |
358 |
<input type="submit" value="Search" /> |
360 |
<input type="text" id="title" name="title" value="[% title | html %]" /> |
359 |
</fieldset> |
361 |
</li> |
360 |
</fieldset> |
362 |
<li> |
361 |
<input type="hidden" name="op" id="op" value="do_search" /> |
363 |
<label for="author">Author:</label> |
362 |
</form> |
364 |
<input type="text" id="author" name="author" value="[% author | html %]" /> |
363 |
[% INCLUDE 'acquisitions-menu.inc' %] |
365 |
</li> |
364 |
</aside> |
366 |
<li> |
365 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
367 |
<label for="publisher">Publisher:</label> |
366 |
</div> <!-- /.row --> |
368 |
<input type="text" id="publisher" name="publisher" value="[% publisher | html %]" /> |
|
|
369 |
</li> |
370 |
<li> |
371 |
<label for="publicationyear">Publication year:</label> |
372 |
<input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear | html %]" /> |
373 |
</li> |
374 |
<li> |
375 |
<label for="branch">Library:</label> |
376 |
<select id="branch" name="branch"> |
377 |
<option value="">All</option> |
378 |
[%# FIXME Should not we filter the libraries %] |
379 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch, unfiltered => 1 ) %] |
380 |
</select> |
381 |
</li> |
382 |
</ol> |
383 |
<fieldset class="action"> |
384 |
<input type="submit" value="Search" /> |
385 |
</fieldset> |
386 |
</fieldset> |
387 |
<input type="hidden" name="op" id="op" value="do_search" /> |
388 |
</form> |
389 |
[% INCLUDE 'acquisitions-menu.inc' %] |
390 |
</aside> |
391 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
392 |
</div> <!-- /.row --> |
367 |
|
393 |
|
368 |
[% MACRO jsinclude BLOCK %] |
394 |
[% MACRO jsinclude BLOCK %] |
369 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
395 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
370 |
- |
|
|