app.controller('CreateExpenseController', ['$scope', '$state', 'globalMessagesService', 'createExpenseRestService',

function($scope, $state, globalMessagesService, createExpenseRestService) {
	"use strict";

	$scope.accountingText = "";

	$scope.cancel = function() {
		$state.go('dashboard');
	};

	$scope.nextStep = function() {
		if($scope.accountingText === "" || $scope.accountingText.length < 5) {
			globalMessagesService.showInfoMd('reimbursement.expense.info.accountingTextMissingTitle',
				'reimbursement.expense.info.accountingTextMissingMessage');
		}
		else {
			createExpenseRestService.postCreateExpense($scope.accountingText).then(function(response) {
				$state.go('create-expense-step2', { uid: response.data.uid });
			}, function() {
				globalMessagesService.showGeneralError();
			});
		}
	};

}]);

@@ -227,18 +227,20 @@
 gText = 
-%22%22
+null
 ;%0A%0A%09$sco
@@ -358,17 +358,67 @@
 ext === 
-%22
+null %7C%7C typeof $scope.accountingText === %22undefined
 %22 %7C%7C $sc

fix create expense step1 validation