Lines 64-69
$(document).ready(function() {
Link Here
|
64 |
location.href = url; |
64 |
location.href = url; |
65 |
return false; |
65 |
return false; |
66 |
}); |
66 |
}); |
|
|
67 |
// Update all notes |
68 |
$("#savenotes").click(function(){ |
69 |
var all_nodes = $(late_orderst.fnGetNodes()); |
70 |
var req = new XMLHttpRequest(); |
71 |
var url = '/cgi-bin/koha/acqui/lateorders.pl'; |
72 |
var data = new FormData(); |
73 |
data.append("op","save"); |
74 |
for (var i = 0; i < all_nodes.length; i++) { |
75 |
var order = $(all_nodes[i]).find("input[name='ordernumber']"); |
76 |
var internalnote = $(all_nodes[i]).find("input[name='internalnote']"); |
77 |
var vendornote = $(all_nodes[i]).find("input[name='vendornote']"); |
78 |
data.append(order[0].value + "_i",internalnote[0].value); |
79 |
data.append(order[0].value + "_v",vendornote[0].value); |
80 |
} |
81 |
|
82 |
req.open("POST",url); |
83 |
req.send(data); |
84 |
req.onreadystatechange = function () { |
85 |
if (req.readyState == '4' ){ |
86 |
alert(_("all notes is modified correctly")); |
87 |
} |
88 |
} |
89 |
}); |
67 |
}); |
90 |
}); |
68 |
//]]> |
91 |
//]]> |
69 |
</script> |
92 |
</script> |
Lines 127-132
$(document).ready(function() {
Link Here
|
127 |
<th>Fund</th> |
150 |
<th>Fund</th> |
128 |
<th>Claims count</th> |
151 |
<th>Claims count</th> |
129 |
<th class="title-string">Claimed date</th> |
152 |
<th class="title-string">Claimed date</th> |
|
|
153 |
<th>Internal note</th> |
154 |
<th>Vendor note</th> |
130 |
</tr> |
155 |
</tr> |
131 |
</thead> |
156 |
</thead> |
132 |
<tbody> |
157 |
<tbody> |
Lines 191-196
$(document).ready(function() {
Link Here
|
191 |
<span title="0000-00-00"></span> |
216 |
<span title="0000-00-00"></span> |
192 |
[% END %] |
217 |
[% END %] |
193 |
</td> |
218 |
</td> |
|
|
219 |
<td><input name="internalnote" id="internalnote" type="text" value="[% lateorder.internalnote %]"></td> |
220 |
<td><input name="vendornote" id="vendornote" type="text" value="[% lateorder.vendornote %]"></td> |
194 |
</tr> |
221 |
</tr> |
195 |
[% END %] |
222 |
[% END %] |
196 |
</tbody> |
223 |
</tbody> |
Lines 198-204
$(document).ready(function() {
Link Here
|
198 |
<tr> |
225 |
<tr> |
199 |
<th colspan="5">Total</th> |
226 |
<th colspan="5">Total</th> |
200 |
<th>[% total %]</th> |
227 |
<th>[% total %]</th> |
201 |
<th colspan="6"> </th> |
228 |
<th colspan="8"> </th> |
202 |
</tr> |
229 |
</tr> |
203 |
</tfoot> |
230 |
</tfoot> |
204 |
</table> |
231 |
</table> |
Lines 209-214
$(document).ready(function() {
Link Here
|
209 |
[% UNLESS lateorder.budget_lock %] |
236 |
[% UNLESS lateorder.budget_lock %] |
210 |
<input type="submit" value="Claim order" /> |
237 |
<input type="submit" value="Claim order" /> |
211 |
[% END %] |
238 |
[% END %] |
|
|
239 |
<input type="button" value="Save notes" id="savenotes"/> |
212 |
</p> |
240 |
</p> |
213 |
</form> |
241 |
</form> |
214 |
[% ELSE %]<p>There are no late orders.</p> |
242 |
[% ELSE %]<p>There are no late orders.</p> |
215 |
- |
|
|