From e15fd466d21e997fb971526c2d07b630dc3170f1 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 8 Feb 2021 18:56:20 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index eb7b09b4..db7abe48 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -7,6 +7,7 @@ MISC ITEMS THAT CAME UP +todo: if you change the filter the page should reset to 1 or else you get a weird scenario where it says page 5 but there is only one result page so it says no data todo: tagpicker, don't like how it works, it's funky to enter multiple tags and input doesn't go away when you select it just leaves the typed text there once a selection is made it should not repeat the typed text again, it shoudl be ready to type another tag from start @@ -15,6 +16,16 @@ LISTVIEW REPLACE CURRENT <----HERE not THERE ---v (below this is all past for reference) TODO (now) +TAGS FILTER ISSUES + +Table query (working) +"SELECT acustomer.name, acustomer.id, acustomer.phone1, acustomer.emailaddress, aheadoffice.name, aheadoffice.id, acustomer.tags from acustomer left join aheadoffice on (acustomer.headofficeid=aheadoffice.id) left join acontract on (acustomer.contractid=acontract.id) +where (acustomer.tags @> array['violet','yellow'::varchar(255)]) ORDER BY acustomer.name ASC LIMIT 5 OFFSET 0" + +Report Query (not working) +"SELECT acustomer.id, from acustomer left join aheadoffice on (acustomer.headofficeid=aheadoffice.id) left join acontract on (acustomer.contractid=acontract.id) +where (acustomer.tags @> array['violet','yellow'::varchar(255)]) ORDER BY acustomer.name ASC " + todo (after)