From 6f21ab10defa19e339a71f3640058079f678b588 Mon Sep 17 00:00:00 2001 From: Theo Weijmer Date: Wed, 18 Sep 2019 09:40:10 +0200 Subject: [PATCH] fix fopr offer total --- application/core/MY_Controller.php | 2 +- public/js/lib/services/offersService.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php index 8061db3..edfb98d 100644 --- a/application/core/MY_Controller.php +++ b/application/core/MY_Controller.php @@ -16,7 +16,7 @@ class MY_Controller extends CI_Controller { { parent::__construct(); - $this->version = '1.00.11'; + $this->version = '1.00.12'; $this->load->library( 'beheer/session/RetrieveUserSession' ); diff --git a/public/js/lib/services/offersService.js b/public/js/lib/services/offersService.js index 2423919..ae0bfbe 100644 --- a/public/js/lib/services/offersService.js +++ b/public/js/lib/services/offersService.js @@ -107,9 +107,9 @@ dbo.offersService = { dbo.offerDataService.getAllOffers( offersObject, function ( data ) { vm.offers.removeAll(); + vm.totalOwnRevenue( 0 ); + vm.totalChanceOwnRevenue( 0 ); $.each( data, function ( i, p ) { - vm.totalOwnRevenue( 0 ); - vm.totalChanceOwnRevenue( 0 ); vm.offers.push( new self.Offer( p ) ); } ); } );