[FIX] point_of_sale: display select button on client list after scanning
Before this, if you where on the customer selection screen and scanned a customer barcode the customer would be shown, but you were not able to select him. This correctly sets ClientListScreenWidget.new_client to the scanned partner which makes the button toggle. Closes #11874
This commit is contained in:
committed by
Joren Van Onder
parent
07633cda1e
commit
e94b2f8a3e
@@ -1023,7 +1023,9 @@ var ClientListScreenWidget = ScreenWidget.extend({
|
||||
if (this.editing_client) {
|
||||
this.$('.detail.barcode').val(code.code);
|
||||
} else if (this.pos.db.get_partner_by_barcode(code.code)) {
|
||||
this.display_client_details('show',this.pos.db.get_partner_by_barcode(code.code));
|
||||
var partner = this.pos.db.get_partner_by_barcode(code.code);
|
||||
this.new_client = partner;
|
||||
this.display_client_details('show', partner);
|
||||
}
|
||||
},
|
||||
perform_search: function(query, associate_result){
|
||||
|
||||
Reference in New Issue
Block a user