|
Lines 67-72
Link Here
|
| 67 |
<th>Fund</th> |
67 |
<th>Fund</th> |
| 68 |
<th>Claims count</th> |
68 |
<th>Claims count</th> |
| 69 |
<th class="title-string">Claimed date</th> |
69 |
<th class="title-string">Claimed date</th> |
|
|
70 |
<th>Internal note</th> |
| 71 |
<th>Vendor note</th> |
| 70 |
</tr> |
72 |
</tr> |
| 71 |
</thead> |
73 |
</thead> |
| 72 |
<tbody> |
74 |
<tbody> |
|
Lines 131-136
Link Here
|
| 131 |
<span title="0000-00-00"></span> |
133 |
<span title="0000-00-00"></span> |
| 132 |
[% END %] |
134 |
[% END %] |
| 133 |
</td> |
135 |
</td> |
|
|
136 |
<td><input name="internalnote" id="internalnote" type="text" value="[% lateorder.internalnote %]"></td> |
| 137 |
<td><input name="vendornote" id="vendornote" type="text" value="[% lateorder.vendornote %]"></td> |
| 134 |
</tr> |
138 |
</tr> |
| 135 |
[% END %] |
139 |
[% END %] |
| 136 |
</tbody> |
140 |
</tbody> |
|
Lines 138-144
Link Here
|
| 138 |
<tr> |
142 |
<tr> |
| 139 |
<th colspan="5">Total</th> |
143 |
<th colspan="5">Total</th> |
| 140 |
<th>[% total %]</th> |
144 |
<th>[% total %]</th> |
| 141 |
<th colspan="6"> </th> |
145 |
<th colspan="8"> </th> |
| 142 |
</tr> |
146 |
</tr> |
| 143 |
</tfoot> |
147 |
</tfoot> |
| 144 |
</table> |
148 |
</table> |
|
Lines 149-154
Link Here
|
| 149 |
[% UNLESS lateorder.budget_lock %] |
153 |
[% UNLESS lateorder.budget_lock %] |
| 150 |
<input type="submit" value="Claim order" /> |
154 |
<input type="submit" value="Claim order" /> |
| 151 |
[% END %] |
155 |
[% END %] |
|
|
156 |
<input type="button" value="Save notes" id="savenotes"/> |
| 152 |
</p> |
157 |
</p> |
| 153 |
</form> |
158 |
</form> |
| 154 |
[% ELSE %]<p>There are no late orders.</p> |
159 |
[% ELSE %]<p>There are no late orders.</p> |
|
Lines 249-254
Link Here
|
| 249 |
location.href = url; |
254 |
location.href = url; |
| 250 |
return false; |
255 |
return false; |
| 251 |
}); |
256 |
}); |
|
|
257 |
// Update all notes |
| 258 |
$("#savenotes").click(function(){ |
| 259 |
var all_nodes = $(late_orderst.fnGetNodes()); |
| 260 |
var req = new XMLHttpRequest(); |
| 261 |
var url = '/cgi-bin/koha/acqui/lateorders.pl'; |
| 262 |
var data = new FormData(); |
| 263 |
data.append("op","save"); |
| 264 |
for (var i = 0; i < all_nodes.length; i++) { |
| 265 |
var order = $(all_nodes[i]).find("input[name='ordernumber']"); |
| 266 |
var internalnote = $(all_nodes[i]).find("input[name='internalnote']"); |
| 267 |
var vendornote = $(all_nodes[i]).find("input[name='vendornote']"); |
| 268 |
data.append(order[0].value + "_i",internalnote[0].value); |
| 269 |
data.append(order[0].value + "_v",vendornote[0].value); |
| 270 |
} |
| 271 |
|
| 272 |
req.open("POST",url); |
| 273 |
req.send(data); |
| 274 |
req.onreadystatechange = function () { |
| 275 |
if (req.readyState == '4' ){ |
| 276 |
alert(_("all notes is modified correctly")); |
| 277 |
} |
| 278 |
} |
| 279 |
}); |
| 252 |
}); |
280 |
}); |
| 253 |
</script> |
281 |
</script> |
| 254 |
[% END %] |
282 |
[% END %] |
| 255 |
- |
|
|