# HG changeset patch
# User Ranjith S R <ranjith@qualiantech.com>
# Date 1563794209 -19800
#      Mon Jul 22 16:46:49 2019 +0530
# Node ID a162b6559404f84cbd8c022a3ad8b5140a88e3cb
# Parent  180cccadafedba2c29151338ed61122122ddc9fe
Related to issue 41096 : Receipt Customer location should be retrived form Backoffice if it is not present in localstorage

diff -r 180cccadafed -r a162b6559404 web/org.openbravo.retail.posterminal/js/model/order.js
--- a/web/org.openbravo.retail.posterminal/js/model/order.js	Fri Jul 19 18:58:53 2019 +0530
+++ b/web/org.openbravo.retail.posterminal/js/model/order.js	Mon Jul 22 16:46:49 2019 +0530
@@ -10072,7 +10072,7 @@
                 OB.Model.BPLocation,
                 criteria,
                 function(locations) {
-                  if (locations.models.length > 0) {
+                  if (locations.models.length === 2) {
                     _.each(locations.models, function(l) {
                       if (l.id === bpLocId) {
                         bpLoc = l;
