From 0e81d28950f7dcc7def21ee9e61544cdc364863c Mon Sep 17 00:00:00 2001 From: developsessions Date: Thu, 2 Feb 2023 01:13:01 +0100 Subject: [PATCH] fix: wrong doctype include of pos_profile.js and fix 404 error because wrong including of form-raw.min.js --- pasigono/hooks.py | 4 ++-- pasigono/public/js/form-raw.bundle.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 pasigono/public/js/form-raw.bundle.js diff --git a/pasigono/hooks.py b/pasigono/hooks.py index 453566c..200446c 100644 --- a/pasigono/hooks.py +++ b/pasigono/hooks.py @@ -14,7 +14,7 @@ # include js, css files in header of desk.html # app_include_css = "/assets/pasigono/css/pasigono.css" -app_include_js = ["/assets/js/form-raw.min.js", "https://js.stripe.com/terminal/v1/", +app_include_js = ["form-raw.bundle.js", "https://js.stripe.com/terminal/v1/", "/assets/pasigono/js/jsrsasign-all-min.js", "pos-mettler-toledo.bundle.js"] # include js, css files in header of web template @@ -32,7 +32,7 @@ page_js = {"point-of-sale" : "custom_scripts/point_of_sale/point_of_sale.js"} # include js in doctype views -doctype_js = {"pos_profile" : "custom_scripts/pos_profile/pos_profile.js"} +doctype_js = {"POS Profile" : "custom_scripts/pos_profile/pos_profile.js"} # doctype_list_js = {"doctype" : "public/js/doctype_list.js"} # doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"} # doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"} diff --git a/pasigono/public/js/form-raw.bundle.js b/pasigono/public/js/form-raw.bundle.js new file mode 100644 index 0000000..43aeff7 --- /dev/null +++ b/pasigono/public/js/form-raw.bundle.js @@ -0,0 +1 @@ +import "../../custom_scripts/frappe/form.js";