Lines 144-150
Link Here
|
144 |
<td class="actions"> |
144 |
<td class="actions"> |
145 |
[% IF ( account.is_credit ) %] |
145 |
[% IF ( account.is_credit ) %] |
146 |
[% IF Koha.Preference('UseEmailReceipts') %] |
146 |
[% IF Koha.Preference('UseEmailReceipts') %] |
147 |
<div class="btn-group"> |
147 |
<div class="btn-group dropup"> |
148 |
<button class="btn btn-xs btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-receipt"></i> Receipt</button> |
148 |
<button class="btn btn-xs btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-receipt"></i> Receipt</button> |
149 |
<ul class="dropdown-menu dropdown-menu-end"> |
149 |
<ul class="dropdown-menu dropdown-menu-end"> |
150 |
<li |
150 |
<li |
Lines 156-163
Link Here
|
156 |
<input type="hidden" name="op" value="cud-send_receipt" /> |
156 |
<input type="hidden" name="op" value="cud-send_receipt" /> |
157 |
<input type="hidden" name="accountlines_id" value="[% account.accountlines_id | html %]" /> |
157 |
<input type="hidden" name="accountlines_id" value="[% account.accountlines_id | html %]" /> |
158 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]" /> |
158 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]" /> |
|
|
159 |
<button type="submit" class="dropdown-item receipt-email-action"> <i class="fa fa-envelope"></i> Email </button> |
159 |
</form> |
160 |
</form> |
160 |
<a href="#" class="receipt-email-action"><i class="fa fa-envelope"></i> Email</a> |
|
|
161 |
</li> |
161 |
</li> |
162 |
</ul> |
162 |
</ul> |
163 |
</div> |
163 |
</div> |
Lines 510-520
Link Here
|
510 |
$("#discount").attr({ "value": (0).format_price(), "max": amountoutstanding, "min": 0 }); |
510 |
$("#discount").attr({ "value": (0).format_price(), "max": amountoutstanding, "min": 0 }); |
511 |
$("#discount").focus(); |
511 |
$("#discount").focus(); |
512 |
}); |
512 |
}); |
513 |
|
|
|
514 |
$(".receipt-email-action").on("click", function(e){ |
515 |
e.preventDefault(); |
516 |
return $(this).siblings('form').submit(); |
517 |
}); |
518 |
}); |
513 |
}); |
519 |
</script> |
514 |
</script> |
520 |
[% END %] |
515 |
[% END %] |
521 |
- |
|
|