This commit is contained in:
CHIEFSOFT\ameye
2026-01-08 11:54:47 -05:00
parent 5a45449636
commit b291f75679
3 changed files with 34 additions and 2 deletions
+30
View File
@@ -277,6 +277,36 @@ def merms_report_topics():
return response return response
@api.route("/panel/report/item/payment", methods=["POST"])
@jwt_required()
def merms_report_topics_payment():
data = request.get_json()
response = ReportService.process_report_topic_request(data)
return response
@api.route("/panel/report/item/system", methods=["POST"])
@jwt_required()
def merms_report_topics_system():
data = request.get_json()
response = ReportService.process_report_topic_request(data)
return response
@api.route("/panel/report/item/product", methods=["POST"])
@jwt_required()
def merms_report_topics_product():
data = request.get_json()
response = ReportService.process_report_topic_request(data)
return response
# @api.route("/panel/report/topics", methods=["POST"])
# @jwt_required()
# def merms_report_topics():
# data = request.get_json()
# response = ReportService.process_report_topic_request(data)
# return response
@api.route("/panel/account/products/color-styles", methods=["POST"]) @api.route("/panel/account/products/color-styles", methods=["POST"])
+2 -1
View File
@@ -63,9 +63,10 @@ class ReportService(BaseService):
@staticmethod @staticmethod
def configured_report_types(): def configured_report_types():
data = { data = {
"topics":[ "topics": [
{"name": 'Payments', "url": 'payment', "active": True, "list_order": 0}, {"name": 'Payments', "url": 'payment', "active": True, "list_order": 0},
{"name": 'Product', "url": 'product', "active": True, "list_order": 1}, {"name": 'Product', "url": 'product', "active": True, "list_order": 1},
{"name": 'System', "url": 'system', "active": True, "list_order": 2},
] ]
} }
+2 -1
View File
@@ -19,7 +19,7 @@ class WebContentsService(BaseService):
"site_title": "my-site-title", "site_title": "my-site-title",
"site_description": "This is site description in the header", "site_description": "This is site description in the header",
"site_logo_text": "MY-GOOD-LOGO", "site_logo_text": "MY-GOOD-LOGO",
"site_contact_email": "email@specialemail.com", "site_contact_email": "email@email.com",
"site_contact_phone": "911 111 1111", "site_contact_phone": "911 111 1111",
"site_keywords": "Responsive, HTML5, DSAThemes, Landing, Software, Mobile App, SaaS, Startup, Creative, Digital Product", "site_keywords": "Responsive, HTML5, DSAThemes, Landing, Software, Mobile App, SaaS, Startup, Creative, Digital Product",
"facebook": "myface.facebook.com", "facebook": "myface.facebook.com",
@@ -76,6 +76,7 @@ class WebContentsService(BaseService):
web_contents_data[t.settings_key.strip()] = t.setting_value.strip() web_contents_data[t.settings_key.strip()] = t.setting_value.strip()
# The template set up # The template set up
web_contents_data["web_images"]=[]
return web_contents_data return web_contents_data