Lines 327-332
Link Here
|
327 |
|
327 |
|
328 |
[% MACRO jsinclude BLOCK %] |
328 |
[% MACRO jsinclude BLOCK %] |
329 |
[% INCLUDE 'datatables.inc' %] |
329 |
[% INCLUDE 'datatables.inc' %] |
|
|
330 |
[% INCLUDE 'format_price.inc' %] |
330 |
[% INCLUDE 'columns_settings.inc' %] |
331 |
[% INCLUDE 'columns_settings.inc' %] |
331 |
[% INCLUDE 'str/members-menu.inc' %] |
332 |
[% INCLUDE 'str/members-menu.inc' %] |
332 |
[% Asset.js("js/members-menu.js") | $raw %] |
333 |
[% Asset.js("js/members-menu.js") | $raw %] |
Lines 371-377
Link Here
|
371 |
var accountline = button.data('accountline'); |
372 |
var accountline = button.data('accountline'); |
372 |
$('#payoutline').val(accountline); |
373 |
$('#payoutline').val(accountline); |
373 |
var amount = button.data('amount') * -1; |
374 |
var amount = button.data('amount') * -1; |
374 |
$("#paid + span").replaceWith(amount); |
375 |
$("#paid + span").replaceWith(amount.format_price()); |
375 |
$("#amount").attr({ "value": amount, "max": amount, "min": 0 }); |
376 |
$("#amount").attr({ "value": amount, "max": amount, "min": 0 }); |
376 |
$("#amount, #payout_transaction_type").focus(); |
377 |
$("#amount, #payout_transaction_type").focus(); |
377 |
}); |
378 |
}); |
Lines 385-391
Link Here
|
385 |
var amount = button.data('amount'); |
386 |
var amount = button.data('amount'); |
386 |
var amountoutstanding = button.data('amountoutstanding') || 0; |
387 |
var amountoutstanding = button.data('amountoutstanding') || 0; |
387 |
var paid = amount - amountoutstanding; |
388 |
var paid = amount - amountoutstanding; |
388 |
$("#paid + span").replaceWith(paid); |
389 |
$("#paid + span").replaceWith(paid.format_price()); |
389 |
$("#returned").attr({ "value": paid, "max": paid, "min": 0 }); |
390 |
$("#returned").attr({ "value": paid, "max": paid, "min": 0 }); |
390 |
var member = button.data('member'); |
391 |
var member = button.data('member'); |
391 |
if ( member === '' ) { |
392 |
if ( member === '' ) { |
Lines 403-409
Link Here
|
403 |
var accountline = button.data('accountline'); |
404 |
var accountline = button.data('accountline'); |
404 |
$('#discountline').val(accountline); |
405 |
$('#discountline').val(accountline); |
405 |
var amount = button.data('amount'); |
406 |
var amount = button.data('amount'); |
406 |
$("#charged + span").replaceWith(amount); |
407 |
$("#charged + span").replaceWith(amount.format_price()); |
407 |
$("#discount").attr({ "max": amount, "min": 0 }); |
408 |
$("#discount").attr({ "max": amount, "min": 0 }); |
408 |
$("#discount").focus(); |
409 |
$("#discount").focus(); |
409 |
}); |
410 |
}); |
410 |
- |
|
|