# HG changeset patch
# User Rafa Alonso <rafael.alonso@openbravo.com>
# Date 1410103971 -7200
#      Sun Sep 07 17:32:51 2014 +0200
# Node ID 02d20cd9244444c3206328a673d479270db94a69
# Parent  cd8c9b63d38f8fe66d8e22b9bcfa0f0ccb497e09
Fixes issue 27548: OB.MobileApp.model.orderList points to the order list and their methods

diff -r cd8c9b63d38f -r 02d20cd92444 web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
--- a/web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js	Wed Sep 17 17:37:19 2014 +0200
+++ b/web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js	Sun Sep 07 17:32:51 2014 +0200
@@ -296,6 +296,7 @@
     });
     this.set('order', receipt);
     orderList = new OB.Collection.OrderList(receipt);
+    OB.MobileApp.model.orderList = orderList;
     this.set('orderList', orderList);
     this.set('customer', new OB.Model.BusinessPartner());
     this.set('customerAddr', new OB.Model.BPLocation());
