offcie product

This commit is contained in:
CHIEFSOFT\ameye
2025-10-07 12:29:43 -04:00
parent ea06665f6d
commit e06948643a
3 changed files with 86 additions and 0 deletions
+24
View File
@@ -152,6 +152,30 @@ class OfficeDashboardService(BaseService):
return products_result
@staticmethod
def get_office_product_detail(filters):
product_id = filters.get('product_id')
products = Products.get_product_by_product_id(product_id)
product_data = {
'id': products.id,
'uid': products.uid,
'product_id': products.product_id,
'description': products.description,
'name': products.name,
'status': products.status,
'added': products.added.isoformat() if products.added else None,
'updated': products.updated.isoformat() if products.updated else None,
'banner': products.banner,
}
products_result = {
"product_configuration": product_data,
"product_details": product_data,
}
return products_result
@staticmethod
def get_office_product_templates(filters):
templates = ProductsTemplates.get_template_for_office(filters)