Lines 108-115
Link Here
|
108 |
</li> |
108 |
</li> |
109 |
<li> |
109 |
<li> |
110 |
<label>Change to give: </label> |
110 |
<label>Change to give: </label> |
111 |
<span id="change">0.00</span> |
111 |
<span id="change">[% 0 | $Price %]</span> |
112 |
<input type="hidden" name="change" value="0.00"/> |
112 |
<input type="hidden" name="change" value="[% 0 | $Price %]"/> |
113 |
</li> |
113 |
</li> |
114 |
|
114 |
|
115 |
[% PROCESS account_payment_types %] |
115 |
[% PROCESS account_payment_types %] |
Lines 156-162
Link Here
|
156 |
</div> |
156 |
</div> |
157 |
<div class="modal-body"> |
157 |
<div class="modal-body"> |
158 |
<p>The amount collected from the patron is higher than the amount to be paid.</p> |
158 |
<p>The amount collected from the patron is higher than the amount to be paid.</p> |
159 |
<p>The change to give is <b><span id="modal_change">0.00</span></b>.</p> |
159 |
<p>The change to give is <b><span id="modal_change">[% 0 | $Price %]</span></b>.</p> |
160 |
<p>Confirm this payment?</p> |
160 |
<p>Confirm this payment?</p> |
161 |
</div> |
161 |
</div> |
162 |
<div class="modal-footer"> |
162 |
<div class="modal-footer"> |
Lines 242-250
Link Here
|
242 |
|
242 |
|
243 |
function updateChangeValues() { |
243 |
function updateChangeValues() { |
244 |
var change = $('#change')[0]; |
244 |
var change = $('#change')[0]; |
|
|
245 |
var zero_formatted = "[% 0 | $Price %]"; |
245 |
change.innerHTML = Math.round(($('#collected')[0].value - $('#paid')[0].value) * 100) / 100; |
246 |
change.innerHTML = Math.round(($('#collected')[0].value - $('#paid')[0].value) * 100) / 100; |
246 |
if (change.innerHTML <= 0) { |
247 |
if (change.innerHTML <= 0) { |
247 |
change.innerHTML = "0.00"; |
248 |
change.innerHTML = zero_formatted; |
248 |
} else { |
249 |
} else { |
249 |
change.value = change.innerHTML; |
250 |
change.value = change.innerHTML; |
250 |
moneyFormat(change); |
251 |
moneyFormat(change); |
251 |
- |
|
|