# HG changeset patch
# User Rafa Alonso <ral@openbravo.com>
# Date 1447761931 -3600
#      Tue Nov 17 13:05:31 2015 +0100
# Node ID 1aa54a01e54c76012be2da87b1aae03f0a1d349a
# Parent  74bf1baf5f1860e42f33c4b1ea09b03d37e8a3af
Remove extra renderings

diff -r 74bf1baf5f18 -r 1aa54a01e54c web/org.openbravo.retail.posterminal/js/components/orderdetails.js
--- a/web/org.openbravo.retail.posterminal/js/components/orderdetails.js	Thu Dec 17 21:12:34 2015 +0100
+++ b/web/org.openbravo.retail.posterminal/js/components/orderdetails.js	Tue Nov 17 13:05:31 2015 +0100
@@ -31,7 +31,7 @@
   preSetContentDetail: function (order, docNo) {
     var orderDate = new Date(order.get('orderDate'));
     if (order.get('hasbeenpaid') === 'Y' || order.get('isLayaway')) {
-      orderDate = OB.I18N.normalizeDate(this.order.get('creationDate'));
+      orderDate = OB.I18N.normalizeDate(order.get('creationDate'));
       if (_.isNull(orderDate)) {
         OB.error("The creationDate cannot be null");
       } else {
@@ -76,7 +76,6 @@
     }, this);
     if (OB.MobileApp.model.hasPermission('EnableMultiPriceList', true)) {
       this.order.on('change:priceList', function (model) {
-        this.renderData(model.get('documentNo'));
         this.doPricelistChanged({
           priceList: model.get('priceList')
         });
