diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-06-16 01:25:51 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-06-16 01:25:51 -0500 |
commit | 430d18b5829416a186ce554846ba68cde4ad6750 (patch) | |
tree | 0b4a7eee706bec0440c6c9d01be935babdf4605b /httemplate/misc/batch-cust_pay.html | |
parent | 8f82d54c3b3bd30c8f8451ea24bcdab70ff37327 (diff) |
RT#33484: Delete lines from quick payment entry [removed prefix, documented, added color handling]
Diffstat (limited to 'httemplate/misc/batch-cust_pay.html')
-rw-r--r-- | httemplate/misc/batch-cust_pay.html | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html index fb3ec04f3..3b0ebc112 100644 --- a/httemplate/misc/batch-cust_pay.html +++ b/httemplate/misc/batch-cust_pay.html @@ -26,15 +26,15 @@ function warnUnload() { } window.onbeforeunload = warnUnload; -function add_row_callback(rownum, prefix, values) { +function add_row_callback(rownum, values) { if (values) { - custnum_update_callback(rownum, prefix); + custnum_update_callback(rownum); } else { document.getElementById('enable_app'+rownum).disabled = true; } } -function delete_row_callback(rownum, prefix) { +function delete_row_callback(rownum) { var i = 0; var delbutton = document.getElementById('delete'+rownum+'.'+i); var delrows = []; @@ -49,7 +49,7 @@ function delete_row_callback(rownum, prefix) { } } -function custnum_update_callback(rownum, prefix) { +function custnum_update_callback(rownum) { var custnum = document.getElementById('custnum'+rownum).value; // if there is a custnum and more than one open invoice, enable // (and check) the box @@ -58,17 +58,17 @@ function custnum_update_callback(rownum, prefix) { enable_app_checkbox.disabled = show_applications; % if ( $use_discounts ) { - select_discount_term(rownum, prefix); + select_discount_term(rownum); % } } -function invnum_update_callback(rownum, prefix) { - custnum_update_callback(rownum, prefix); +function invnum_update_callback(rownum) { + custnum_update_callback(rownum); } -function select_discount_term(row, prefix) { - var custnum_obj = document.getElementById('custnum'+prefix+row); - var select_obj = document.getElementById('discount_term'+prefix+row); +function select_discount_term(row) { + var custnum_obj = document.getElementById('custnum'+row); + var select_obj = document.getElementById('discount_term'+row); var value = ''; if (select_obj.type == 'hidden') { @@ -436,6 +436,7 @@ my @footer_align = ( 'r', 'r' ); my @onchange = ( '', '' );; my $use_discounts = ''; +# Not entirely sure this works anymore... if ( FS::Record->scalar_sql('SELECT COUNT(*) FROM part_pkg_discount') ) { #push @header, 'Discount'; push @header, ''; |