diff options
| author | Mark Wells <mark@freeside.biz> | 2012-07-14 16:31:35 -0700 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2012-07-14 16:31:35 -0700 |
| commit | 0948b20054aebe11ee24718556fd17f33c13699a (patch) | |
| tree | a1b63b188fa043620248770b2f51ed25aa3483f4 | |
| parent | 40102e7cb896a4eeb8823552cbb1e0c36278e228 (diff) | |
fix an error message in quick payment entry, from #17356
| -rw-r--r-- | httemplate/elements/customer-table.html | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/httemplate/elements/customer-table.html b/httemplate/elements/customer-table.html index 1e717cac8..ed2513d61 100644 --- a/httemplate/elements/customer-table.html +++ b/httemplate/elements/customer-table.html @@ -198,7 +198,11 @@ Example: var customerArrayArray = eval('(' + customers + ')') || []; - if ( customerArrayArray.length == 1 ) { + if ( customerArrayArray.length == 0 ) { + + update_customer(searchrow, []); + + } else if ( customerArrayArray.length == 1 ) { update_customer(searchrow, customerArrayArray[0]); % if ( $opt{custnum_update_callback} ) { @@ -272,7 +276,11 @@ Example: custnum_obj.disabled = false; custnum_obj.style.backgroundColor = '#ffffff'; - if ( customerArrayArray.length == 1 ) { + if ( customerArrayArray.length == 0 ) { + + update_customer(searchrow, []); + + } else if ( customerArrayArray.length == 1 ) { update_customer(searchrow, customerArrayArray[0]); % if ( $opt{custnum_update_callback} ) { |
