This commit is contained in:
2022-03-04 00:23:10 +00:00
parent 39b61ea7da
commit f6a5e685aa

View File

@@ -27,6 +27,30 @@ cases,
investigate if possible to do notify reporting like before where send report as attachment to client without them logging in
I used to have some code for report id selection in the notification, but ....??
see if it's possible to just generate and send a report by email first then see about enabling it
use the existing test notification system wrap in debug block and use it to send a test workorder report for wo 1 to test address
This is sent to render a work order report:
POST http://localhost:7575/api/v8.0/report/render-job
{"AType":34,"selectedRowIds":[355],"ReportId":9,"ClientMeta":{"UserName":"AyaNova SuperUser","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOiIxNjQ2NzgyNTc4IiwiaXNzIjoiYXlhbm92YS5jb20iLCJpZCI6IjEifQ.ad7Acq54JCRGitDWKDJFFnqKkidbdaKaFmj-RA_RG5E","DownloadToken":"NdoU8ca3LG4L39Tj2oi3UReeeM7FLevTgbgopTPhGbA","TimeZoneName":"America/Los_Angeles","LanguageName":"en-US","Hour12":true,"CurrencyName":"USD","DefaultLocale":"en","PDFDate":"3/3/22","PDFTime":"3:38 PM"}}
How to implement auto notifications if can report and send from server
In Customer nave section replicate the customer subscriptions form as a new automatic subscriptions list and form
not for a specific user but for any customer that matches tags selected on customer
Add customer tags to match to send auto subscription
Add optional report to appropriate subscriptions
add static text message, has no templates like v7 did, just a static message, unless can find a way to replicate the stock message for that notification
Also in that same form be able to set the impersonation values like what time zone, what currency symbol etc whatever is needed for reporting
defaults to local current user's settings, language setting etc and saves them
MUST HAVE feature would be to be able to click a button to see which current customers this would send to based on tags!!!
ideally it would display in the form live as any changes are made and if the customer has no email it would highl8ight that somehow
NICE TO HAVE FEATURE would also be available backwards from the Customer to view a list of things they will be notified about based on their tags and subscriptions set up
modify exiting notification system to understand and work with this type where instead of a user subscribing it's one of these tag types so it checks cust tags to see if this customer gets it
then locally compiles report and sends it
or else make it a parallel system with it's own subscriptions tables and models so as not to pollute existing system maybe?
This way users can make infinite different ones by tag with their own reports etc
There are only a few customer specific notifications so it won't be everything