diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index abd88625..3903efd5 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -3,15 +3,17 @@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -todo: need to be able to have a link system whereby a user can directly open a report from an object via one link after login - just like how you can open a specific widget from a url link, but to extend that there is also a report parameter and it triggers - the ui to first open the object then populate it from the report - Maybe a report viewer page after all or phantom link with no page that just opens the report directly as if the user had gone through the objects edit form - Maybe even a report viewer URL that is based off the server and they never actually use the full client software? - meh - AyOpenObject type,recordid,reportid - - idlist,datalist,filter? +todo: Need client to accept an open object url which directly opens a report + This is becuase Notification will send a link to a Customer with a workorder or quote to be rendered for them + There will be an object type, object id and report id + object type will initially only ever be a workorder or a quote to support customer notification + (And a Widget for testing) + However, there is likely no reason not to support any report and any type of object in the client code in case it is useful to support a feature down the road + since there would be little difference between supporting this for wo and quote and any other object + This should be sent to the server directly to render the report in the current user's Client browser context + So they would click on a link in an email and be taken to login and then directly to previewing the report + + todo: export from grid to xls, csv etc. diff --git a/ayanova/src/views/home-notify-subscription.vue b/ayanova/src/views/home-notify-subscription.vue index 6bb58fff..60deaf37 100644 --- a/ayanova/src/views/home-notify-subscription.vue +++ b/ayanova/src/views/home-notify-subscription.vue @@ -350,13 +350,14 @@ export default { } }, showLinkReportId() { - //TODO: Many others as well, but for now until those objects exist + //NOTE: Currently projected: Only Quotes and Workorders are involved in sending as attached reports + //And only to customers and only single items, not lists so it's doable to indicate a report id + //and send a link from notification to open the report switch (this.obj.eventType) { - case 27: //General notification - case 20: //backup status - return false; - default: + case 999: //to be filled in later return true; + default: + return false; } }, showTags() {