offcie product
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user