Lines 30-36
Link Here
|
30 |
<table id="resultst"> |
30 |
<table id="resultst"> |
31 |
<thead> |
31 |
<thead> |
32 |
<tr> |
32 |
<tr> |
33 |
<th> </th> |
33 |
[% IF CAN_user_acquisition_merge_invoices %] |
|
|
34 |
<th> </th> |
35 |
[% END %] |
34 |
<th> </th> |
36 |
<th> </th> |
35 |
<th>Invoice no.</th> |
37 |
<th>Invoice no.</th> |
36 |
<th>Vendor</th> |
38 |
<th>Vendor</th> |
Lines 45-51
Link Here
|
45 |
<tbody> |
47 |
<tbody> |
46 |
[% FOREACH invoice IN invoices %] |
48 |
[% FOREACH invoice IN invoices %] |
47 |
<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 %]"> |
49 |
<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 %]"> |
48 |
<td>[% invoice.is_linked_to_subscriptions | html %]</td> |
50 |
[% IF CAN_user_acquisition_merge_invoices %] |
|
|
51 |
<td>[% invoice.is_linked_to_subscriptions | html %]</td> |
52 |
[% END %] |
49 |
<td><input type="checkbox" class="select-invoice" value="[% invoice.invoiceid | html %]" /></td> |
53 |
<td><input type="checkbox" class="select-invoice" value="[% invoice.invoiceid | html %]" /></td> |
50 |
<td><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid | uri %]">[% invoice.invoicenumber | html %]</a></td> |
54 |
<td><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid | uri %]">[% invoice.invoicenumber | html %]</a></td> |
51 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% invoice.booksellerid | uri %]">[% invoice.suppliername | html %]</a></td> |
55 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% invoice.booksellerid | uri %]">[% invoice.suppliername | html %]</a></td> |
Lines 101-146
Link Here
|
101 |
[% END %] |
105 |
[% END %] |
102 |
</tbody> |
106 |
</tbody> |
103 |
</table> |
107 |
</table> |
104 |
<a class="submit" id="merge" href="#merge_invoices">Merge selected invoices</a> |
108 |
[% IF CAN_user_acquisition_merge_invoices %] |
105 |
<div id="merge_invoices"> |
109 |
<a class="submit" id="merge" href="#merge_invoices">Merge selected invoices</a> |
106 |
<form id="merge_invoice_form" action="/cgi-bin/koha/acqui/invoice.pl" method="post"> |
110 |
<div id="merge_invoices"> |
107 |
<fieldset class="rows"> |
111 |
<form id="merge_invoice_form" action="/cgi-bin/koha/acqui/invoice.pl" method="post"> |
108 |
<ol> |
112 |
<fieldset class="rows"> |
109 |
<li><h2>Merge invoices</h2></li> |
113 |
<ol> |
110 |
<li><table id="merge_table"> |
114 |
<li><h2>Merge invoices</h2></li> |
111 |
<thead><tr><th>Invoice no.</th><th>Shipment date</th><th>Billing date</th><th>Shipment cost</th></tr></thead> |
115 |
<li><table id="merge_table"> |
112 |
<tbody> |
116 |
<thead><tr><th>Invoice no.</th><th>Shipment date</th><th>Billing date</th><th>Shipment cost</th></tr></thead> |
113 |
</tbody> |
117 |
<tbody> |
114 |
</table></li> |
118 |
</tbody> |
115 |
<li><label for="merge_invoicenumber" class="required">Invoice number:</label> |
119 |
</table></li> |
116 |
<input type="text" size="10" id="merge_invoicenumber" name="invoicenumber" value="" class="required" required="required" /> |
120 |
<li><label for="merge_invoicenumber" class="required">Invoice number:</label> |
117 |
<span class="required">Required</span> |
121 |
<input type="text" size="10" id="merge_invoicenumber" name="invoicenumber" value="" class="required" required="required" /> |
118 |
</li> |
122 |
<span class="required">Required</span> |
119 |
<li><label for="merge_shipmentdate">Shipment date:</label> |
123 |
</li> |
120 |
<input type="text" size="10" id="merge_shipmentdate" name="shipmentdate" value="" class="datepicker" /></li> |
124 |
<li><label for="merge_shipmentdate">Shipment date:</label> |
|
|
125 |
<input type="text" size="10" id="merge_shipmentdate" name="shipmentdate" value="" class="datepicker" /></li> |
121 |
|
126 |
|
122 |
<li><label for="merge_billingdate">Billing date:</label> |
127 |
<li><label for="merge_billingdate">Billing date:</label> |
123 |
<input type="text" size="10" id="merge_billingdate" name="billingdate" value="" class="datepicker" /></li> |
128 |
<input type="text" size="10" id="merge_billingdate" name="billingdate" value="" class="datepicker" /></li> |
124 |
|
129 |
|
125 |
<li><label for="merge_shipmentcost">Shipment cost:</label> |
130 |
<li><label for="merge_shipmentcost">Shipment cost:</label> |
126 |
<input type="text" size="10" id="merge_shipmentcost" name="shipmentcost" value="" /></li> |
131 |
<input type="text" size="10" id="merge_shipmentcost" name="shipmentcost" value="" /></li> |
127 |
<li><label for="merge_shipment_budgetid">Fund:</label> |
132 |
<li><label for="merge_shipment_budgetid">Fund:</label> |
128 |
<select id="merge_shipment_budgetid" name="shipment_budget_id"> |
133 |
<select id="merge_shipment_budgetid" name="shipment_budget_id"> |
129 |
<option value="">No fund</option> |
134 |
<option value="">No fund</option> |
130 |
[% FOREACH budget IN budgets_loop %] |
135 |
[% FOREACH budget IN budgets_loop %] |
131 |
<option value="[% budget.budget_id | html %]">[% budget.budget_name | html %] |
136 |
<option value="[% budget.budget_id | html %]">[% budget.budget_name | html %] |
132 |
</option> |
137 |
</option> |
133 |
[% END %] |
138 |
[% END %] |
134 |
</select></li> |
139 |
</select></li> |
135 |
|
140 |
|
136 |
<li><span class="label">Status:</span> <span id="merge_status"></span></li> |
141 |
<li><span class="label">Status:</span> <span id="merge_status"></span></li> |
137 |
<li><input type="submit" value="Merge" /></li> |
142 |
<li><input type="submit" value="Merge" /></li> |
138 |
</ol> |
143 |
</ol> |
139 |
<input type="hidden" name="op" value="mod" /> |
144 |
<input type="hidden" name="op" value="mod" /> |
140 |
<input type="hidden" id="merge_invoiceid" name="invoiceid" value="" /> |
145 |
<input type="hidden" id="merge_invoiceid" name="invoiceid" value="" /> |
141 |
</fieldset> |
146 |
</fieldset> |
142 |
</form> |
147 |
</form> |
143 |
</div> |
148 |
</div> |
|
|
149 |
[% END %] |
144 |
[% ELSE %] |
150 |
[% ELSE %] |
145 |
<p>Sorry, but there are no results for your search.</p> |
151 |
<p>Sorry, but there are no results for your search.</p> |
146 |
<p>Search was: |
152 |
<p>Search was: |
147 |
- |
|
|