www/app/components/provisionalPlan/controllers/provisionalPlanDetailsController.js
/**
     * @desc Init data shared with $ionicModal of add movement modal
     * @function _initAddMovementModal
     * @private
     */
@desc Init data shared with $ionicModal of add movement modal
@function _initAddMovementModal
@private
@desc Init data shared with $ionicModal of add movement modal @function _initAddMovementModal @private
function _initAddMovementModal() {
      $scope.movementFormModel = ProvisionalPlanService.buildDefaultMovementToAddByProvisionalPlanId(self.provisionalPlan.id);
      $scope.modal = {
        current: {
          modes: budgetManager.uiManager.formMode,
          mode: budgetManager.uiManager.formMode.create,
          provisionalPlanTitle: self.provisionalPlan.name,
          modeMessage: 'Ajouter un mouvement à '
        }
      };
      return $ionicModal.fromTemplateUrl('app/components/movement/views/movementModalForm.html', {
        scope: $scope,
        animation: 'slide-in-up'
      }).then(function (modal) {
        self.movementFormModal = modal;
      });
    }
function _initAddMovementModal ( ) { $scope . movementFormModel = ProvisionalPlanService . buildDefaultMovementToAddByProvisionalPlanId ( self . provisionalPlan . id ) ; $scope . modal = { current : { modes : budgetManager . uiManager . formMode , mode : budgetManager . uiManager . formMode . create , provisionalPlanTitle : self . provisionalPlan . name , modeMessage : 'Ajouter un mouvement à ' } } ; return $ionicModal . fromTemplateUrl ( 'app/components/movement/views/movementModalForm.html' , { scope : $scope , animation : 'slide-in-up' } ) . then ( function ( modal ) { self . movementFormModal = modal ; } ) ; }
@desc Init data shared with $ionicModal of add movement modal
 @function _initAddMovementModal
 @private
@desc Init data shared with $ionicModal of add movement modal @function _initAddMovementModal @private
//Build new movement by default