anchor.diff:  function AdminCreateOrderCycleCtrl($scope, $http, OrderCycle, Enterprise) {
  +  $scope.enterprises = Enterprise.index();
  +
     $scope.order_cycle = OrderCycle.order_cycle;
  -
  -  $scope.enterprises = {};
  -  Enterprise.index(function(data) {
  -    for(i in data) {
  -      $scope.enterprises[data[i]['id']] = data[i];
  -    }
  -  });
   
     $scope.addSupplier = function($event) {
       OrderCycle.addSupplier($event, $scope.new_supplier_id);
  
positive.code:       order_cycle: {incoming_exchanges: [],
  		    outgoing_exchanges: []},
  
        addSupplier: function($event, new_supplier_id) {
  	$event.preventDefault();
  	this.order_cycle.incoming_exchanges.push({enterprise_id: new_supplier_id, active: true});
        },
  
        removeInactiveExchanges: function() {
  	for(var i=0; i < this.order_cycle.incoming_exchanges.length; i++) {
  	  if(!this.order_cycle.incoming_exchanges[i].active) {
  	    this.order_cycle.incoming_exchanges.splice(i, 1);
  	    i--;
  	  }
  	}
        },
  
        load: function(order_cycle_id) {
  
negative.code: 	    console.log('fail');
  	  }
  	});
        },
  
        removeInactiveExchanges: function() {
  	for(var i=0; i < this.order_cycle.incoming_exchanges.length; i++) {
  	  if(!this.order_cycle.incoming_exchanges[i].active) {
  	    this.order_cycle.incoming_exchanges.splice(i, 1);
  	    i--;
  	  }
  	}
        }
      };
    }).
    factory('Enterprise', function($resource) {
      var Enterprise = $resource('/admin/enterprises/:enterprise_id.json', {},
  			       {'index': { method: 'GET', isArray: true}});
  
      return {
        enterprises: {},
  
        index: function() {
  	var service = this;
  
  	Enterprise.index(function(data) {
  	  for(i in data) {
  	    service.enterprises[data[i]['id']] = data[i];
  	  }
  	});
  
  	return this.enterprises;
        }
      };
    }).
    directive('datetimepicker', ['$parse', function($parse) {
      return function(scope, element, attrs) {
  