|
@@ -80,8 +80,9 @@ function pos_screens(instance, module){ //module is instance.point_of_sale
|
|
}
|
|
}
|
|
},
|
|
},
|
|
perform_search: function(query, associate_result){
|
|
perform_search: function(query, associate_result){
|
|
|
|
+ var customers;
|
|
if(query){
|
|
if(query){
|
|
- var customers = this.pos.db.search_partner(query);
|
|
|
|
|
|
+ customers = this.pos.db.search_partner(query);
|
|
this.display_client_details('hide');
|
|
this.display_client_details('hide');
|
|
if ( associate_result && customers.length === 1){
|
|
if ( associate_result && customers.length === 1){
|
|
this.new_client = customers[0];
|
|
this.new_client = customers[0];
|
|
@@ -90,7 +91,7 @@ function pos_screens(instance, module){ //module is instance.point_of_sale
|
|
}
|
|
}
|
|
this.render_list(customers);
|
|
this.render_list(customers);
|
|
}else{
|
|
}else{
|
|
- var customers = this.pos.db.get_partners_sorted();
|
|
|
|
|
|
+ customers = this.pos.db.get_partners_sorted();
|
|
this.render_list(customers);
|
|
this.render_list(customers);
|
|
}
|
|
}
|
|
},
|
|
},
|