diff --git a/netforce_clinic/actions/clinic_report_hd_madical.xml b/netforce_clinic/actions/clinic_report_hd_madical.xml
deleted file mode 100644
index 4101bef..0000000
--- a/netforce_clinic/actions/clinic_report_hd_madical.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
- Medical Report Summary
- report
- clinic.report.hd.madical
- report_hd_madical
- report_hd_madical
- clinic_menu
-
diff --git a/netforce_clinic/layouts/clinic_report_hd_madical.xml b/netforce_clinic/layouts/clinic_report_hd_madical.xml
deleted file mode 100644
index fcd40ac..0000000
--- a/netforce_clinic/layouts/clinic_report_hd_madical.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/netforce_clinic/models/report_hd_madical.py b/netforce_clinic/models/report_hd_madical.py
deleted file mode 100644
index d75d294..0000000
--- a/netforce_clinic/models/report_hd_madical.py
+++ /dev/null
@@ -1,177 +0,0 @@
-import time
-
-from datetime import datetime
-from calendar import monthrange
-from netforce.model import Model,fields,get_model
-
-class ReportHDMadical(Model):
- _name="clinic.report.hd.madical"
- _string="Hemodialysis Report Madical Summary"
- _transient=True
-
- _fields={
- "date": fields.Date("Month", required=True),
- }
-
- _defaults={
- 'date': lambda *a: time.strftime("%Y-%m-%d"),
- }
-
- def get_report_data(self,ids,context={}):
-
- for item in get_model("company").search_browse([]):
- company_name=item.name
-
- date=datetime.now().strftime("%Y-%m-%d")
- #datemonth=datetime.now().strftime("%m")
- if ids:
- obj=self.browse(ids)[0]
- date=obj.date
- year=int(date[0:4])
- month=int(date[5:7])
- month_str=datetime.strptime(date,'%Y-%m-%d').strftime("%B")
-
- next_month = str(month + 1)
- if next_month == 13:
- next_month = 12
- #next_month_str=datetime.strptime(next_month,'%m').strftime("%B")
- previous_month = str(month - 1)
- if previous_month == 0:
- previous_month = 12
- #previous_month_str=datetime.strptime(previous_month,'%m').strftime("%B")
-
- #madical=get_model("clinic.hd.case.gm.line").search_browse()
- #patients_mg=get_model("clinic.patient").search_browse(['type','=','mg'])
-
- weekday, total_day=monthrange(year, month)
- time_start='2014-%s-01 00:00:00'%(month)
- time_stop='2014-%s-%s 23:59:59'%(month,total_day)
-
- dom=[]
- dom.append(['state','=','completed'])
- dom.append(['time_start','>=',time_start])
- dom.append(['time_stop','<=',time_stop])
-
- for product in get_model("clinic.hd.case.gm.line").search_browse([]):
- product_id=product.product_id
- print(product_id)
- if product_id:
- product_name=product.description or ""
- product_id=product.product_id or ""
-
- lines=[
- {
- 'product_id' : 'MD-XXXX',
- 'madical' : product_name,
- 'sc': '437',
- 'uc': '',
- 'buy' : '4',
- 'total' : '441',
- },
- {
- 'product_id' : 'MD-XXXX',
- 'madical' : 'H2',
- 'sc': '',
- 'uc': '',
- 'buy' : '',
- 'total' : '',
- },
- {
- 'product_id' : 'MD-XXXX',
- 'madical' : 'Epr4',
- 'sc': '216',
- 'uc': '',
- 'buy' : '',
- 'total' : '216',
- },
- {
- 'product_id' : 'MD-XXXX',
- 'madical' : 'Epr2',
- 'sc': '',
- 'uc': '',
- 'buy' : '',
- 'total' : '',
- },
- {
- 'product_id' : 'MD-XXXX',
- 'madical' : 'Epk4',
- 'sc': '70',
- 'uc': '',
- 'buy' : '',
- 'total' : '70',
- },
- {
- 'product_id' : 'MD-XXXX',
- 'madical' : 'Epk2',
- 'sc': '',
- 'uc': '',
- 'buy' : '',
- 'total' : '',
- },
- {
- 'product_id' : 'MD-XXXX',
- 'madical' : 'Epg4',
- 'sc': '98',
- 'uc': '',
- 'buy' : '',
- 'total' : '98',
- },
- {
- 'product_id' : 'MD-XXXX',
- 'madical' : 'Epg2',
- 'sc': '',
- 'uc': '',
- 'buy' : '',
- 'total' : '',
- },
- {
- 'product_id' : 'MD-XXXX',
- 'madical' : 'Rng4',
- 'sc': '34',
- 'uc': '',
- 'buy' : '9',
- 'total' : '43',
- },
- {
- 'product_id' : 'MD-XXXX',
- 'madical' : 'Rng2',
- 'sc': '',
- 'uc': '',
- 'buy' : '',
- 'total' : '',
- },
- {
- 'product_id' : 'MD-XXXX',
- 'madical' : 'Epi4',
- 'sc': '264',
- 'uc': '',
- 'buy' : '9',
- 'total' : '43',
- },
- {
- 'product_id' : 'MD-XXXX',
- 'madical' : 'Epi2',
- 'sc': '',
- 'uc': '',
- 'buy' : '',
- 'total' : '',
- },
- {
- 'product_id' : 'MD-XXXX',
- 'madical' : 'Vnf',
- 'sc': '',
- 'uc': '',
- 'buy' : '',
- 'total' : '',
- },
- ]
-
- data={
- 'month': month_str,
- 'year': year,
- 'lines': lines,
- 'company_name': company_name,
- }
- return data
-
-ReportHDMadical.register()
diff --git a/netforce_clinic/reports/report_hd_madical.xlsx b/netforce_clinic/reports/report_hd_madical.xlsx
deleted file mode 100644
index 65c30fd..0000000
Binary files a/netforce_clinic/reports/report_hd_madical.xlsx and /dev/null differ
diff --git a/netforce_clinic/templates/report_hd_madical.hbs b/netforce_clinic/templates/report_hd_madical.hbs
deleted file mode 100644
index 43c24b7..0000000
--- a/netforce_clinic/templates/report_hd_madical.hbs
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
- Summary of the Madical
-
-
- [{{company_name}}]
- As at {{month}} {{year}}
-
-
-
-
-
- {{#each lines}}
-
- {{madical}} |
- {{sc}} |
- {{uc}} |
- {{buy}} |
- {{total}} |
-
- {{/each}}
-
-