# HG changeset patch
# User Alejandro <alekosmp86@gmail.com>
# Date 1572988923 18000
#      Tue Nov 05 16:22:03 2019 -0500
# Node ID 531b8d02f73a8afcb877bb171382c3f9b3816519
# Parent  98959015cfdb8f361085325d8f3cb5d45b1bd6e8
Fixed issue 42025: It is now possible to send several products using multiselection

diff --git a/web/org.openbravo.retail.restaurantmanagement/js/utils.js b/web/org.openbravo.retail.restaurantmanagement/js/utils.js
--- a/web/org.openbravo.retail.restaurantmanagement/js/utils.js
+++ b/web/org.openbravo.retail.restaurantmanagement/js/utils.js
@@ -245,9 +245,9 @@
  */
 OB.OBRESMS.Utils.updateQtySentToKitchen = function(receipt, selectedLines) {
   var i, selectedLine, lines, lineQty;
-  selectedLine = selectedLines[0];
   lines = receipt.get('lines').models;
   for (i = 0; i < lines.length; i++) {
+    selectedLine = selectedLines[i];
     if (selectedLine.get('id') === lines[i].get('id')) {
       if (lines[i].hasOwnProperty('obresmsQtysenttokitchen')) {
         lineQty = lines[i].get('obresmsQtysenttokitchen');
