|
Lines 507-513
Link Here
|
| 507 |
$("#paid + span").text(paid.format_price()); |
507 |
$("#paid + span").text(paid.format_price()); |
| 508 |
$("#returned").attr({ "value": paid.format_price(), "max": paid }); |
508 |
$("#returned").attr({ "value": paid.format_price(), "max": paid }); |
| 509 |
var member = button.data('member'); |
509 |
var member = button.data('member'); |
| 510 |
if ( member === '' ) { |
510 |
// Hide AC option for anonymous transactions (no borrowernumber) |
|
|
511 |
if ( !member || member === '' ) { |
| 511 |
$("#refund_type option[value='AC']").remove(); |
512 |
$("#refund_type option[value='AC']").remove(); |
| 512 |
} else if ( $("#refund_type option[value='AC']").length == 0 ) { |
513 |
} else if ( $("#refund_type option[value='AC']").length == 0 ) { |
| 513 |
$("#refund_type").prepend('<option value="AC" selected="selected">Account credit</option>'); |
514 |
$("#refund_type").prepend('<option value="AC" selected="selected">Account credit</option>'); |