From 88125196a2b62739963e60c9c6cbd22fb217adb8 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 15 Sep 2020 19:30:14 +0000 Subject: [PATCH] --- server/AyaNova/biz/ReportBiz.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/AyaNova/biz/ReportBiz.cs b/server/AyaNova/biz/ReportBiz.cs index 2cc468de..9c86a9c9 100644 --- a/server/AyaNova/biz/ReportBiz.cs +++ b/server/AyaNova/biz/ReportBiz.cs @@ -388,9 +388,10 @@ namespace AyaNova.Biz //https://github.com/cure53/DOMPurify await page.AddScriptTagAsync(new AddTagOptions() { Path = Path.Combine(ReportJSFolderPath, "ay-pf.js") }); - //add Bar code library + //add Bar code library if our bar code helper is referenced //https://github.com/metafloor/bwip-js - await page.AddScriptTagAsync(new AddTagOptions() { Path = Path.Combine(ReportJSFolderPath, "ay-bc.js") }); + if (report.Template.Contains("ayBC ") || report.JsHelpers.Contains("ayBC ")) + await page.AddScriptTagAsync(new AddTagOptions() { Path = Path.Combine(ReportJSFolderPath, "ay-bc.js") }); //add stock helpers await page.AddScriptTagAsync(new AddTagOptions() { Path = Path.Combine(ReportJSFolderPath, "ay-report.js") });