From 6a7f6cea3445ec2d57dcf6bd78de0864636702a7 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 13 Oct 2021 17:44:34 +0000 Subject: [PATCH] Report designer refinement and docs --- ayanova/devdocs/todo.txt | 9 ++++++++- ayanova/src/views/ay-report-edit.vue | 22 +++++++--------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 25f804c9..dab6fe41 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -16,6 +16,10 @@ ## ROUGH SCHEDULE TO GET TO BETA + + + + Report designer improvements add group by method to standard functions and document ayGroupBy @@ -27,11 +31,14 @@ in docs it says see below or something but that's not ideal, put it directly into both sections if necessary in a code markdown block + See 3999 append about unit model name/number + case 4002 - I will check after performing import that serials match, BUT see my note as there may be an issue with serials that in v7 "are not consumed" because the workorder is "open" but in v8 would and should be considered "consumed" security jwt tokens and expiration, can a user just keep working if they are set to inactive because their token hasn't expired? should tokens refresh periodically and have a super short life? - Update front / back + Update front / back / dotnet 6 is out + https://dotnet.microsoft.com/download/dotnet/6.0 double check roles at client, the way authorizationroles.hasrole is coded makes me think it might be wrong it only checks that the value is nonzero but in postgres I noticed it needs to compare if the resulting value equals the exact role being checked diff --git a/ayanova/src/views/ay-report-edit.vue b/ayanova/src/views/ay-report-edit.vue index 30e85f37..fda47a7d 100644 --- a/ayanova/src/views/ay-report-edit.vue +++ b/ayanova/src/views/ay-report-edit.vue @@ -497,27 +497,19 @@ export default { {{#each ayReportData}} + +

{{ Name }}

-
Notes: {{ Notes }}
+ {{/each}} `, - style: `.example { - color: blue; + style: "", + jsPrerender: `async function ayPrepareData(ayData){ + return ayData; }`, - jsPrerender: `async function ayPrepareData(reportData){ - //this function (if present) is called with the report data - //before the report is rendered - //modify data as required here and return it to change the data before the report renders - //see the help documentation for details - return reportData; -}`, - jsHelpers: `//Register custom Handlebars helpers here to use in your report script -//https://handlebarsjs.com/guide/#custom-helpers -Handlebars.registerHelper('loud', function (aString) { - return aString.toUpperCase() -})`, + jsHelpers: "", renderType: 0, headerTemplate: null, footerTemplate: null,