|
Lines 149-201
Link Here
|
| 149 |
|
149 |
|
| 150 |
<!-- Confirm cashup modal --> |
150 |
<!-- Confirm cashup modal --> |
| 151 |
<div class="modal" id="confirmCashupModal" tabindex="-1" role="dialog" aria-labelledby="confirmCashupLabel"> |
151 |
<div class="modal" id="confirmCashupModal" tabindex="-1" role="dialog" aria-labelledby="confirmCashupLabel"> |
| 152 |
<div class="modal-dialog"> |
152 |
<form id="cashup_individual_form" method="post" enctype="multipart/form-data"> |
| 153 |
<div class="modal-content"> |
153 |
[% INCLUDE 'csrf-token.inc' %] |
| 154 |
<div class="modal-header"> |
154 |
<div class="modal-dialog"> |
| 155 |
<h1 class="modal-title" id="confirmCashupLabel" |
155 |
<div class="modal-content"> |
| 156 |
>Confirm cashup of <em><span id="registerc"></span></em |
156 |
<div class="modal-header"> |
| 157 |
></h1> |
157 |
<h1 class="modal-title" id="confirmCashupLabel" |
| 158 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
158 |
>Confirm cashup of <em><span id="registerc"></span></em |
|
|
159 |
></h1> |
| 160 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
| 161 |
</div> |
| 162 |
<div class="modal-body"> Please confirm that you have removed <span id="cashc"></span> from the cash register and left a float of <span id="floatc"></span>. </div> |
| 163 |
<!-- /.modal-body --> |
| 164 |
<div class="modal-footer"> |
| 165 |
<input type="hidden" name="registerid" id="cashup_registerid" value="" /> |
| 166 |
<input type="hidden" name="op" value="cud-cashup" /> |
| 167 |
<button type="submit" class="btn btn-primary" id="cashup_confirm">Confirm</button> |
| 168 |
<button type="button" class="btn btn-default" data-bs-dismiss="modal">Cancel</button> |
| 169 |
</div> |
| 170 |
<!-- /.modal-footer --> |
| 159 |
</div> |
171 |
</div> |
| 160 |
<div class="modal-body"> Please confirm that you have removed <span id="cashc"></span> from the cash register and left a float of <span id="floatc"></span>. </div> |
172 |
<!-- /.modal-content --> |
| 161 |
<!-- /.modal-body --> |
|
|
| 162 |
<div class="modal-footer"> |
| 163 |
<a id="cashup_confirm" href="" class="btn btn-primary">Confirm</a> |
| 164 |
<button type="button" class="btn btn-default" data-bs-dismiss="modal">Cancel</button> |
| 165 |
</div> |
| 166 |
<!-- /.modal-footer --> |
| 167 |
</div> |
173 |
</div> |
| 168 |
<!-- /.modal-content --> |
174 |
<!-- /.modal-dialog --> |
| 169 |
</div> |
175 |
</form> |
| 170 |
<!-- /.modal-dialog --> |
|
|
| 171 |
</div> |
176 |
</div> |
| 172 |
<!-- /#confirmCashupModal --> |
177 |
<!-- /#confirmCashupModal --> |
| 173 |
|
178 |
|
| 174 |
<!-- Confirm cashupall modal --> |
179 |
<!-- Confirm cashupall modal --> |
| 175 |
<div class="modal" id="confirmCashupAllModal" tabindex="-1" role="dialog" aria-labelledby="confirmCashupAllLabel"> |
180 |
<div class="modal" id="confirmCashupAllModal" tabindex="-1" role="dialog" aria-labelledby="confirmCashupAllLabel"> |
| 176 |
<div class="modal-dialog"> |
181 |
<form id="cashup_all_form" method="post" enctype="multipart/form-data"> |
| 177 |
<div class="modal-content"> |
182 |
[% INCLUDE 'csrf-token.inc' %] |
| 178 |
<div class="modal-header"> |
183 |
<div class="modal-dialog"> |
| 179 |
<h1 class="modal-title" id="confirmCashupAllLabel">Confirm cashup of <em>all</em> cash registers</h1> |
184 |
<div class="modal-content"> |
| 180 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
185 |
<div class="modal-header"> |
| 181 |
</div> |
186 |
<h1 class="modal-title" id="confirmCashupAllLabel">Confirm cashup of <em>all</em> cash registers</h1> |
| 182 |
<div class="modal-body"> |
187 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
| 183 |
<p>Please confirm that you have received [% bankable | $Price %] to cashup.</p> |
188 |
</div> |
| 184 |
<ul> |
189 |
<div class="modal-body"> |
| 185 |
<li>Total income (cash): [% ctotal | $Price %] ([% cctotal | $Price %])</li> |
190 |
<p>Please confirm that you have received [% bankable | $Price %] to cashup.</p> |
| 186 |
<li>Total outgoing (cash): [% dtotal | $Price %] ([% cdtotal | $Price %])</li> |
191 |
<ul> |
| 187 |
</ul> |
192 |
<li>Total income (cash): [% ctotal | $Price %] ([% cctotal | $Price %])</li> |
| 188 |
</div> |
193 |
<li>Total outgoing (cash): [% dtotal | $Price %] ([% cdtotal | $Price %])</li> |
| 189 |
<!-- /.modal-body --> |
194 |
</ul> |
| 190 |
<div class="modal-footer"> |
195 |
</div> |
| 191 |
<a id="cashup_all_confirm" href="/cgi-bin/koha/pos/registers.pl?op=cashup" class="btn btn-primary">Confirm</a> |
196 |
<!-- /.modal-body --> |
| 192 |
<button type="button" class="btn btn-default" data-bs-dismiss="modal">Cancel</button> |
197 |
<div class="modal-footer"> |
|
|
198 |
<input type="hidden" name="op" value="cud-cashup" /> |
| 199 |
<button type="submit" class="btn btn-primary" id="cashup_all_confirm">Confirm</button> |
| 200 |
<button type="button" class="btn btn-default" data-bs-dismiss="modal">Cancel</button> |
| 201 |
</div> |
| 202 |
<!-- /.modal-footer --> |
| 193 |
</div> |
203 |
</div> |
| 194 |
<!-- /.modal-footer --> |
204 |
<!-- /.modal-content --> |
| 195 |
</div> |
205 |
</div> |
| 196 |
<!-- /.modal-content --> |
206 |
<!-- /.modal-dialog --> |
| 197 |
</div> |
207 |
</form> |
| 198 |
<!-- /.modal-dialog --> |
|
|
| 199 |
</div> |
208 |
</div> |
| 200 |
<!-- /#confirmCashupAllModal --> |
209 |
<!-- /#confirmCashupAllModal --> |
| 201 |
|
210 |
|
|
Lines 229-235
Link Here
|
| 229 |
var rfloat = button.data('float'); |
238 |
var rfloat = button.data('float'); |
| 230 |
$('#floatc').text(rfloat); |
239 |
$('#floatc').text(rfloat); |
| 231 |
var rid = button.data('registerid'); |
240 |
var rid = button.data('registerid'); |
| 232 |
$('#cashup_confirm').attr("href", '/cgi-bin/koha/pos/registers.pl?op=cashup®isterid='+rid); |
241 |
$('#cashup_registerid').val(rid); |
| 233 |
}); |
242 |
}); |
| 234 |
}); |
243 |
}); |
| 235 |
</script> |
244 |
</script> |