[freeside-commits] branch master updated. c81080957a5d09a7a7679a4eed4a7b702dd3d56e

Mark Wells mark at 420.am
Tue Mar 26 19:50:33 PDT 2013


The branch, master has been updated
       via  c81080957a5d09a7a7679a4eed4a7b702dd3d56e (commit)
      from  d06f67ed49d71e8d2c957d877fe738a8cac0cfe2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c81080957a5d09a7a7679a4eed4a7b702dd3d56e
Author: Mark Wells <mark at freeside.biz>
Date:   Tue Mar 26 19:49:08 2013 -0700

    fix for batch payment application, #22147

diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html
index 887b924..ef06441 100644
--- a/httemplate/misc/batch-cust_pay.html
+++ b/httemplate/misc/batch-cust_pay.html
@@ -32,6 +32,13 @@ function custnum_update_callback(rownum, prefix) {
 % }
 }
 
+function invnum_update_callback(rownum, prefix) {
+  custnum_update_callback(rownum, prefix);
+  var enable = document.getElementById('enable_app'+rownum);
+  enable.checked = true;
+  toggle_application_row.call(enable);
+}
+
 function select_discount_term(row, prefix) {
   var custnum_obj = document.getElementById('custnum'+prefix+row);
   var select_obj = document.getElementById('discount_term'+prefix+row);
@@ -198,7 +205,6 @@ function change_app_amount() {
        && amount_unapplied(rownum) > 0 ) {
 
     create_application_row(rownum, parseInt(appnum) + 1);
-
   }
 }
 
@@ -352,6 +358,7 @@ function preload() {
     footer_align => \@footer_align,
     onchange => \@onchange,
     custnum_update_callback => 'custnum_update_callback',
+    invnum_update_callback => 'invnum_update_callback',
     add_row_callback => 'add_row_callback',
 &>
 

-----------------------------------------------------------------------

Summary of changes:
 httemplate/misc/batch-cust_pay.html |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list