Lines 13-30
Link Here
|
13 |
], |
13 |
], |
14 |
"sPaginationType": "four_button" |
14 |
"sPaginationType": "four_button" |
15 |
} ) ); |
15 |
} ) ); |
|
|
16 |
$(".check_uncertain").on("change",function(){ |
17 |
var form = document.getElementById("uncertainprices"); |
18 |
var ordernumber = $(this).data("ordernumber"); |
19 |
uncheckbox( form, ordernumber ); |
20 |
}); |
16 |
}); |
21 |
}); |
17 |
var MSG_INVALIDPRICE = _("ERROR: Price is not a valid number, please check the price and try again!"); |
22 |
var MSG_INVALIDPRICE = _("ERROR: Price is not a valid number, please check the price and try again!"); |
18 |
//]]> |
23 |
//]]> |
19 |
</script> |
24 |
</script> |
20 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acq.js"></script> |
25 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/acq.js"></script> |
21 |
<script type="text/javascript"> |
|
|
22 |
//<![CDATA[ |
23 |
function check(form) { |
24 |
form.submit(); |
25 |
} |
26 |
//]]> |
27 |
</script> |
28 |
</head> |
26 |
</head> |
29 |
<body id="acq_uncertainprice" class="acq"> |
27 |
<body id="acq_uncertainprice" class="acq"> |
30 |
[% INCLUDE 'header.inc' %] |
28 |
[% INCLUDE 'header.inc' %] |
Lines 75-84
function check(form) {
Link Here
|
75 |
[% END %] |
73 |
[% END %] |
76 |
|
74 |
|
77 |
<h2>Orders with uncertain prices</h2> |
75 |
<h2>Orders with uncertain prices</h2> |
78 |
<form action="[% scriptname %]" method="post" name="uncertainprices"> |
76 |
<form action="[% scriptname %]" method="post"> |
79 |
<input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
77 |
<input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
80 |
Orders from: |
78 |
<label for="owner">Orders from:</label> |
81 |
<select name="owner"> |
79 |
<select id="owner" name="owner"> |
82 |
[% IF ( owner ) %] |
80 |
[% IF ( owner ) %] |
83 |
<option value="0">Everyone</option> |
81 |
<option value="0">Everyone</option> |
84 |
<option value="1" selected="selected">me</option> |
82 |
<option value="1" selected="selected">me</option> |
Lines 89-95
function check(form) {
Link Here
|
89 |
</select> |
87 |
</select> |
90 |
<input type="submit" value="Filter" /> |
88 |
<input type="submit" value="Filter" /> |
91 |
</form> |
89 |
</form> |
92 |
<form action="[% scriptname %]" method="post" name="uncertainprices"> |
90 |
<form action="[% scriptname %]" method="post" id="uncertainprices"> |
93 |
<input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
91 |
<input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
94 |
<input type="hidden" name="op" value="validate" /> |
92 |
<input type="hidden" name="op" value="validate" /> |
95 |
<table id="uncertainpricet"> |
93 |
<table id="uncertainpricet"> |
Lines 122-145
function check(form) {
Link Here
|
122 |
<input type="checkbox" name="uncertainprice[% uncertainpriceorder.ordernumber %]" value="1" checked="checked" /> |
120 |
<input type="checkbox" name="uncertainprice[% uncertainpriceorder.ordernumber %]" value="1" checked="checked" /> |
123 |
</td> |
121 |
</td> |
124 |
<td> |
122 |
<td> |
125 |
<input type="text" size="10" name="price[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.listprice %]" |
123 |
<input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber %]" type="text" size="10" name="price[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.listprice %]" /> |
126 |
onchange="uncheckbox(this.form, [% uncertainpriceorder.ordernumber %]);" /> |
|
|
127 |
</td> |
124 |
</td> |
128 |
<td> |
125 |
<td> |
129 |
|
|
|
130 |
[% IF Koha.Preference('AcqCreateItem') == 'ordering' %] |
126 |
[% IF Koha.Preference('AcqCreateItem') == 'ordering' %] |
131 |
[% uncertainpriceorder.quantity %] |
127 |
[% uncertainpriceorder.quantity %] |
132 |
<input type="hidden" name="qty[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.quantity %]" /> |
128 |
<input type="hidden" name="qty[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.quantity %]" /> |
133 |
[% ELSE %] |
129 |
[% ELSE %] |
134 |
<input type="text" size="10" name="qty[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.quantity %]" |
130 |
<input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber %]" type="text" size="10" name="qty[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.quantity %]" /> |
135 |
onchange="uncheckbox(this.form, [% uncertainpriceorder.ordernumber %]);" /> |
|
|
136 |
[% END %] |
131 |
[% END %] |
137 |
</td> |
132 |
</td> |
138 |
</tr> |
133 |
</tr> |
139 |
[% END %] |
134 |
[% END %] |
140 |
</tbody> |
135 |
</tbody> |
141 |
</table> |
136 |
</table> |
142 |
<fieldset class="action"><input type="button" value="Save" onclick="check(this.form)" /></fieldset> |
137 |
<fieldset class="action"><input type="button" value="Save" /></fieldset> |
143 |
</form> |
138 |
</form> |
144 |
[% END %] |
139 |
[% END %] |
145 |
|
140 |
|
146 |
- |
|
|