function findTransactionTypeByName($type_name) {
		//FIXME: more than 1000 transactions
		$types = $this->getTransactionTypes(1, 1000)->getResult();

		$type_name = mb_strtolower($type_name);

		foreach($types as $type) {
			if(strcmp(mb_strtolower($type->name), $type_name) == 0) {
				return (int)$type->id;
			}
		}

		return null;
	}