+
e.stopPropagation()}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+ }
+ >
+ setVisible(true)}
+ style={{
+ height: "19px",
+ }}
+ >
+
+ {record.date_last_contacted}
+
+
+
+
+ );
+}
diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json
index 7a1590ba5..ba295c6bc 100644
--- a/client/src/translations/en_us/common.json
+++ b/client/src/translations/en_us/common.json
@@ -1739,6 +1739,9 @@
"edit": "Edit Note",
"new": "New Note"
},
+ "errors": {
+ "inserting": "Error inserting note. {{error}}"
+ },
"fields": {
"createdby": "Created By",
"critical": "Critical",
@@ -1747,7 +1750,8 @@
"updatedat": "Updated At"
},
"labels": {
- "newnoteplaceholder": "Add a note..."
+ "newnoteplaceholder": "Add a note...",
+ "notetoadd": "Note to Add"
},
"successes": {
"create": "Note created successfully.",
diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json
index 6ce6c9bc8..679ce223d 100644
--- a/client/src/translations/es/common.json
+++ b/client/src/translations/es/common.json
@@ -1739,6 +1739,9 @@
"edit": "Editar nota",
"new": "Nueva nota"
},
+ "errors": {
+ "inserting": ""
+ },
"fields": {
"createdby": "Creado por",
"critical": "Crítico",
@@ -1747,7 +1750,8 @@
"updatedat": "Actualizado en"
},
"labels": {
- "newnoteplaceholder": "Agrega una nota..."
+ "newnoteplaceholder": "Agrega una nota...",
+ "notetoadd": ""
},
"successes": {
"create": "Nota creada con éxito.",
diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json
index 7198486db..aab0aa3b3 100644
--- a/client/src/translations/fr/common.json
+++ b/client/src/translations/fr/common.json
@@ -1739,6 +1739,9 @@
"edit": "Note éditée",
"new": "Nouvelle note"
},
+ "errors": {
+ "inserting": ""
+ },
"fields": {
"createdby": "Créé par",
"critical": "Critique",
@@ -1747,7 +1750,8 @@
"updatedat": "Mis à jour à"
},
"labels": {
- "newnoteplaceholder": "Ajouter une note..."
+ "newnoteplaceholder": "Ajouter une note...",
+ "notetoadd": ""
},
"successes": {
"create": "Remarque créée avec succès.",
diff --git a/hasura/migrations/1633647205750_run_sql_migration/down.sql b/hasura/migrations/1633647205750_run_sql_migration/down.sql
new file mode 100644
index 000000000..36ca692a7
--- /dev/null
+++ b/hasura/migrations/1633647205750_run_sql_migration/down.sql
@@ -0,0 +1,51 @@
+-- Could not auto-generate a down migration.
+-- Please write an appropriate down migration for the SQL below:
+-- CREATE
+-- OR REPLACE FUNCTION public.search_owners (search text) RETURNS SETOF owners LANGUAGE plpgsql STABLE AS $function$
+-- BEGIN
+-- IF search = ''
+-- THEN
+-- RETURN query
+-- SELECT
+-- *
+-- FROM
+-- owners;
+-- ELSE
+-- RETURN query
+-- SELECT
+-- *
+-- FROM
+-- owners
+-- WHERE
+-- (
+-- ownr_fn || ' ' || ownr_ln
+-- )
+-- ILIKE '%' || search || '%'
+-- OR ownr_ln ILIKE '%' || search || '%'
+-- OR ownr_fn ILIKE '%' || search || '%'
+-- OR ownr_fn ILIKE '%' || search || '%'
+-- OR ownr_co_nm ILIKE '%' || search || '%'
+-- OR ownr_ph1 ILIKE '%' || search || '%'
+-- OR ownr_ph2 ILIKE '%' || search || '%'
+-- OR ownr_addr1 ILIKE '%' || search || '%'
+-- ORDER BY
+-- (ownr_fn || ' ' || ownr_ln) ILIKE '%' || search || '%'
+-- OR NULL,
+-- ownr_ln ILIKE '%' || search || '%'
+-- OR NULL,
+-- ownr_fn ILIKE '%' || search || '%'
+-- OR NULL,
+-- ownr_co_nm ILIKE '%' || search || '%'
+-- OR NULL,
+-- ownr_fn ILIKE '%' || search || '%'
+-- OR NULL,
+-- ownr_ph1 ILIKE '%' || search || '%'
+-- OR NULL,
+-- ownr_ph2 ILIKE '%' || search || '%'
+-- OR NULL,
+-- ownr_addr1 ILIKE '%' || search || '%'
+-- OR NULL;
+-- END
+-- IF;
+-- END
+-- $function$;
diff --git a/hasura/migrations/1633647205750_run_sql_migration/up.sql b/hasura/migrations/1633647205750_run_sql_migration/up.sql
new file mode 100644
index 000000000..8891a1471
--- /dev/null
+++ b/hasura/migrations/1633647205750_run_sql_migration/up.sql
@@ -0,0 +1,49 @@
+CREATE
+OR REPLACE FUNCTION public.search_owners (search text) RETURNS SETOF owners LANGUAGE plpgsql STABLE AS $function$
+BEGIN
+ IF search = ''
+THEN
+ RETURN query
+ SELECT
+ *
+ FROM
+ owners;
+ELSE
+ RETURN query
+ SELECT
+ *
+ FROM
+ owners
+ WHERE
+ (
+ ownr_fn || ' ' || ownr_ln
+ )
+ ILIKE '%' || search || '%'
+ OR ownr_ln ILIKE '%' || search || '%'
+ OR ownr_fn ILIKE '%' || search || '%'
+ OR ownr_fn ILIKE '%' || search || '%'
+ OR ownr_co_nm ILIKE '%' || search || '%'
+ OR ownr_ph1 ILIKE '%' || search || '%'
+ OR ownr_ph2 ILIKE '%' || search || '%'
+ OR ownr_addr1 ILIKE '%' || search || '%'
+ ORDER BY
+(ownr_fn || ' ' || ownr_ln) ILIKE '%' || search || '%'
+ OR NULL,
+ ownr_ln ILIKE '%' || search || '%'
+ OR NULL,
+ ownr_fn ILIKE '%' || search || '%'
+ OR NULL,
+ ownr_co_nm ILIKE '%' || search || '%'
+ OR NULL,
+ ownr_fn ILIKE '%' || search || '%'
+ OR NULL,
+ ownr_ph1 ILIKE '%' || search || '%'
+ OR NULL,
+ ownr_ph2 ILIKE '%' || search || '%'
+ OR NULL,
+ ownr_addr1 ILIKE '%' || search || '%'
+ OR NULL;
+END
+IF;
+END
+$function$;