|
Lines 137-143
Link Here
|
| 137 |
<td class="actions"> |
137 |
<td class="actions"> |
| 138 |
[% IF ( account.is_credit ) %] |
138 |
[% IF ( account.is_credit ) %] |
| 139 |
[% IF Koha.Preference('UseEmailReceipts') %] |
139 |
[% IF Koha.Preference('UseEmailReceipts') %] |
| 140 |
<div class="btn-group"> |
140 |
<div class="btn-group dropup"> |
| 141 |
<button class="btn btn-xs btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-receipt"></i> Receipt</button> |
141 |
<button class="btn btn-xs btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-receipt"></i> Receipt</button> |
| 142 |
<ul class="dropdown-menu dropdown-menu-end"> |
142 |
<ul class="dropdown-menu dropdown-menu-end"> |
| 143 |
<li><a target="_blank" href="printfeercpt.pl?accountlines_id=[% account.accountlines_id | uri %]" class="receipt-print-action dropdown-item"><i class="fa fa-print"></i> Print</a></li> |
143 |
<li><a target="_blank" href="printfeercpt.pl?accountlines_id=[% account.accountlines_id | uri %]" class="receipt-print-action dropdown-item"><i class="fa fa-print"></i> Print</a></li> |
|
Lines 147-154
Link Here
|
| 147 |
<input type="hidden" name="op" value="cud-send_receipt" /> |
147 |
<input type="hidden" name="op" value="cud-send_receipt" /> |
| 148 |
<input type="hidden" name="accountlines_id" value="[% account.accountlines_id | html %]" /> |
148 |
<input type="hidden" name="accountlines_id" value="[% account.accountlines_id | html %]" /> |
| 149 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]" /> |
149 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]" /> |
|
|
150 |
<button type="submit" class="dropdown-item receipt-email-action"> |
| 151 |
<i class="fa fa-envelope"></i> Email |
| 152 |
</button> |
| 150 |
</form> |
153 |
</form> |
| 151 |
<a href="#" class="receipt-email-action"><i class="fa fa-envelope"></i> Email</a> |
|
|
| 152 |
</li> |
154 |
</li> |
| 153 |
</ul> |
155 |
</ul> |
| 154 |
</div> |
156 |
</div> |
|
Lines 475-485
Link Here
|
| 475 |
$("#discount").attr({ "value": (0).format_price(), "max": amountoutstanding, "min": 0 }); |
477 |
$("#discount").attr({ "value": (0).format_price(), "max": amountoutstanding, "min": 0 }); |
| 476 |
$("#discount").focus(); |
478 |
$("#discount").focus(); |
| 477 |
}); |
479 |
}); |
| 478 |
|
|
|
| 479 |
$(".receipt-email-action").on("click", function(e){ |
| 480 |
e.preventDefault(); |
| 481 |
return $(this).siblings('form').submit(); |
| 482 |
}); |
| 483 |
}); |
480 |
}); |
| 484 |
</script> |
481 |
</script> |
| 485 |
[% END %] |
482 |
[% END %] |
| 486 |
- |
|
|