# HG changeset patch
# User Rafa Alonso <rafael.alonso@openbravo.com>
# Date 1429174650 -7200
#      Thu Apr 16 10:57:30 2015 +0200
# Node ID 06d92cc763f8da42ccb8a28e5dece071b4e74a8e
# Parent  c1ff550691c27c0d552ebd91e3763ddc340c8ad2
Related to issue 29036: A new log line has been added to report about the warehouse that is being used by a line

Also logged, all the available warehouses

This changeset is not intented to reach production, but to try to get more information about the issue

diff -r c1ff550691c2 -r 06d92cc763f8 web/org.openbravo.retail.posterminal/js/model/order.js
--- a/web/org.openbravo.retail.posterminal/js/model/order.js	Tue Apr 14 10:52:20 2015 +0200
+++ b/web/org.openbravo.retail.posterminal/js/model/order.js	Thu Apr 16 10:57:30 2015 +0200
@@ -1250,6 +1250,9 @@
           warehousename: OB.MobileApp.model.get('warehouses')[0].warehousename
         }
       });
+      OB.info("Warehouse applied:", newline.get('warehouse'));
+      OB.info("Available warehouses:", OB.MobileApp.model.get('warehouses'));
+
       if (!_.isUndefined(attrs)) {
         _.each(_.keys(attrs), function (key) {
           newline.set(key, attrs[key]);
