summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-07-14 16:26:08 -0700
committerMark Wells <mark@freeside.biz>2012-07-14 16:26:11 -0700
commitcb17f80a628d5d0d50b740ad92a3fcfb3946e6ca (patch)
tree4eb3baa90ff9b511dc5a7cd7d29cffbddc2f7b2a
parent1baa2c61623bab583557554996d43551f784307e (diff)
fix an error message in quick payment entry, from #17356
-rw-r--r--httemplate/elements/customer-table.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/httemplate/elements/customer-table.html b/httemplate/elements/customer-table.html
index 79443dc8b..75e682d92 100644
--- a/httemplate/elements/customer-table.html
+++ b/httemplate/elements/customer-table.html
@@ -203,7 +203,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} ) {
@@ -277,7 +281,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} ) {