[FIX] point_of_sale: set callbacks for weight and price barcodes
c8732bea1e did not take into account that
we don't have specific callbacks for weight or price type
barcodes. Those where handled by the product callback.
opw-678556
This commit is contained in:
@@ -131,6 +131,8 @@ var ScreenWidget = PosBaseWidget.extend({
|
||||
this.pos.barcode_reader.set_action_callback({
|
||||
'cashier': _.bind(self.barcode_cashier_action, self),
|
||||
'product': _.bind(self.barcode_product_action, self),
|
||||
'weight': _.bind(self.barcode_product_action, self),
|
||||
'price': _.bind(self.barcode_product_action, self),
|
||||
'client' : _.bind(self.barcode_client_action, self),
|
||||
'discount': _.bind(self.barcode_discount_action, self),
|
||||
'error' : _.bind(self.barcode_error_action, self),
|
||||
|
||||
Reference in New Issue
Block a user