www/app/components/provisionalPlan/controllers/provisionalPlanDetailsController.js
/**
     * @desc Save the movementFormModel and update the model then hide modal
     * @param {Movement} movementFormModel Movement to save
     * @function _saveThenCloseMovementModalForm
     */
@desc Save the movementFormModel and update the model then hide modal
@param {Movement} movementFormModel Movement to save
@function _saveThenCloseMovementModalForm
@desc Save the movementFormModel and update the model then hide modal @param { Movement } movementFormModel Movement to save @function _saveThenCloseMovementModalForm
function _saveThenCloseMovementModalForm(movementFormModel) {
      MovementService.save(movementFormModel, self.provisionalPlan.id).then(function () {
        _refreshTotalOfMovements();
      }, function (reason) {
        throw new Error(reason);
      }).finally(function () {
        self.movementFormModal.hide();
      });
    }
function _saveThenCloseMovementModalForm ( movementFormModel ) { MovementService . save ( movementFormModel , self . provisionalPlan . id ) . then ( function ( ) { _refreshTotalOfMovements ( ) ; } , function ( reason ) { throw new Error ( reason ) ; } ) . finally ( function ( ) { self . movementFormModal . hide ( ) ; } ) ; }
@desc Save the movementFormModel and update the model then hide modal
 @param {Movement} movementFormModel Movement to save
 @function _saveThenCloseMovementModalForm
@desc Save the movementFormModel and update the model then hide modal @param { Movement } movementFormModel Movement to save @function _saveThenCloseMovementModalForm