|
Lines 11-24
Link Here
|
| 11 |
$(document).ready(function() { |
11 |
$(document).ready(function() { |
| 12 |
var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, { |
12 |
var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 13 |
sDom: "t", |
13 |
sDom: "t", |
| 14 |
bPaginate: false, |
|
|
| 15 |
bInfo: false, |
| 16 |
"aoColumns": [ |
| 17 |
null,null,null,{ "sType": "title-string" },null,null,null,null |
| 18 |
], |
| 19 |
aoColumnDefs: [ |
14 |
aoColumnDefs: [ |
| 20 |
{ "bSortable": false, "aTargets": [1, 8] }, |
15 |
{ "bSortable": false, "aTargets": [1, 8] }, |
| 21 |
{ "bVisible": false, "aTargets": [0] } |
16 |
{ "bVisible": false, "aTargets": [0] }, |
|
|
17 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
| 22 |
] |
18 |
] |
| 23 |
})); |
19 |
})); |
| 24 |
|
20 |
|
|
Lines 110-116
$(document).ready(function() {
Link Here
|
| 110 |
<th> </th> |
106 |
<th> </th> |
| 111 |
<th>Invoice no.</th> |
107 |
<th>Invoice no.</th> |
| 112 |
<th>Vendor</th> |
108 |
<th>Vendor</th> |
| 113 |
<th>Billing date</th> |
109 |
<th class="title-string">Billing date</th> |
| 114 |
<th>Received biblios</th> |
110 |
<th>Received biblios</th> |
| 115 |
<th>Received items</th> |
111 |
<th>Received items</th> |
| 116 |
<th>Status</th> |
112 |
<th>Status</th> |
|
Lines 121-127
$(document).ready(function() {
Link Here
|
| 121 |
[% FOREACH invoice IN invoices %] |
117 |
[% FOREACH invoice IN invoices %] |
| 122 |
<tr data-invoiceid="[% invoice.invoiceid %]" data-booksellerid="[% invoice.booksellerid %]" data-shipmentdate="[% invoice.shipmentdate | $KohaDates %]" data-billingdate="[% invoice.billingdate | $KohaDates %]" data-shipmentcost="[% invoice.shipmentcost %]" data-shipment_budgetid="[% invoice.shipmentcost_budgetid %]" data-closedate="[% invoice.closedate | $KohaDates %]"> |
118 |
<tr data-invoiceid="[% invoice.invoiceid %]" data-booksellerid="[% invoice.booksellerid %]" data-shipmentdate="[% invoice.shipmentdate | $KohaDates %]" data-billingdate="[% invoice.billingdate | $KohaDates %]" data-shipmentcost="[% invoice.shipmentcost %]" data-shipment_budgetid="[% invoice.shipmentcost_budgetid %]" data-closedate="[% invoice.closedate | $KohaDates %]"> |
| 123 |
<td>[% invoice.is_linked_to_subscriptions %]</td> |
119 |
<td>[% invoice.is_linked_to_subscriptions %]</td> |
| 124 |
<td><input type="checkbox" class="select-invoice" value="[% invoice.invoiceid %]"></input></td> |
120 |
<td><input type="checkbox" class="select-invoice" value="[% invoice.invoiceid %]" /></td> |
| 125 |
<td><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid %]">[% invoice.invoicenumber %]</a></td> |
121 |
<td><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid %]">[% invoice.invoicenumber %]</a></td> |
| 126 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% invoice.booksellerid %]">[% invoice.suppliername %]</a></td> |
122 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% invoice.booksellerid %]">[% invoice.suppliername %]</a></td> |
| 127 |
<td> |
123 |
<td> |
|
Lines 141-155
$(document).ready(function() {
Link Here
|
| 141 |
[% END %] |
137 |
[% END %] |
| 142 |
</td> |
138 |
</td> |
| 143 |
<td> |
139 |
<td> |
| 144 |
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid %]">Details</a> / |
140 |
|
| 145 |
[% IF invoice.closedate %] |
141 |
<div class="dropdown dropup"> |
| 146 |
<a href="invoice.pl?op=reopen&invoiceid=[% invoice.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]">Reopen</a> |
142 |
<a class="btn btn-mini dropdown-toggle" id="invoiceactions[% invoice.invoiceid %]" role="button" data-toggle="dropdown" href="#"> |
| 147 |
[% ELSE %] |
143 |
Actions <b class="caret"></b> |
| 148 |
<a href="invoice.pl?op=close&invoiceid=[% invoice.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]">Close</a> |
144 |
</a> |
| 149 |
[% END %] |
145 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="invoiceactions[% invoice.invoiceid %]"> |
| 150 |
[% UNLESS invoice.receivedbiblios || invoice.receiveditems %] |
146 |
<li><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid %]"><i class="icon-search"></i> Details</a></li> |
| 151 |
/ <a href="invoice.pl?op=delete&invoiceid=[% invoice.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]">Delete</a> |
147 |
[% IF invoice.closedate %] |
| 152 |
[% END %] |
148 |
<li><a href="invoice.pl?op=reopen&invoiceid=[% invoice.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]"><i class="icon-refresh"></i> Reopen</a></li> |
|
|
149 |
[% ELSE %] |
| 150 |
<li><a href="invoice.pl?op=close&invoiceid=[% invoice.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]"><i class="icon-remove-sign"></i> Close</a></li> |
| 151 |
[% END %] |
| 152 |
[% UNLESS invoice.receivedbiblios || invoice.receiveditems %] |
| 153 |
<li><a href="invoice.pl?op=delete&invoiceid=[% invoice.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]"><i class="icon-remove"></i> Delete</a></li> |
| 154 |
[% END %] |
| 155 |
</ul> |
| 156 |
</div> |
| 153 |
</td> |
157 |
</td> |
| 154 |
</tr> |
158 |
</tr> |
| 155 |
[% END %] |
159 |
[% END %] |
|
Lines 179-186
$(document).ready(function() {
Link Here
|
| 179 |
<select id="merge_shipment_budgetid" name="shipment_budget_id"> |
183 |
<select id="merge_shipment_budgetid" name="shipment_budget_id"> |
| 180 |
<option value="">No fund</option> |
184 |
<option value="">No fund</option> |
| 181 |
[% FOREACH budget IN budgets_loop %] |
185 |
[% FOREACH budget IN budgets_loop %] |
| 182 |
<option value="[% budget.budget_id %]"> |
186 |
<option value="[% budget.budget_id %]">[% budget.budget_name %] |
| 183 |
[% budget.budget_name %] |
|
|
| 184 |
</option> |
187 |
</option> |
| 185 |
[% END %] |
188 |
[% END %] |
| 186 |
</select></li> |
189 |
</select></li> |
| 187 |
- |
|
|