template_name

This commit is contained in:
CHIEFSOFT\ameye
2026-01-24 09:06:41 -05:00
parent 56a51186f5
commit e6631e1ab1
+4 -1
View File
@@ -382,6 +382,7 @@ class OfficeDashboardService(BaseService):
member_sub = []
flavor=''
template_name=''
product_templates_data = []
templates_data = []
@@ -392,11 +393,13 @@ class OfficeDashboardService(BaseService):
if membersSubResult.product_template:
templateData = ProductsTemplates.get_template_by_uid(str(membersSubResult.product_template))
if templateData:
flavor = templateData.get('flavor')
flavor = templateData.flavor
template_name = templateData.name
member_sub = {
'id': membersSubResult.id,
'flavor': flavor,
'template_name': template_name,
'subscription_uid': str(membersSubResult.uid),
'member_id': membersSubResult.member_id,
'product_id': membersSubResult.product_id,