summaryrefslogtreecommitdiff
path: root/addons/pos_restaurant/static/src/js/splitbill.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/pos_restaurant/static/src/js/splitbill.js')
-rw-r--r--addons/pos_restaurant/static/src/js/splitbill.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/pos_restaurant/static/src/js/splitbill.js b/addons/pos_restaurant/static/src/js/splitbill.js
index 9dd7e7449e2..745c8282c20 100644
--- a/addons/pos_restaurant/static/src/js/splitbill.js
+++ b/addons/pos_restaurant/static/src/js/splitbill.js
@@ -52,7 +52,7 @@ var SplitbillScreenWidget = screens.ScreenWidget.extend({
}
}else{
if( split.quantity < line.get_quantity()){
- split.quantity += line.get_unit().rounding;
+ split.quantity += line.get_unit().is_unit ? 1 : line.get_unit().rounding;
if(split.quantity > line.get_quantity()){
split.quantity = line.get_quantity();
}