mdc_name & mdc_desc
parent
11d8bda4ae
commit
4c996693a3
|
@ -104,6 +104,7 @@ class HDCase(Model):
|
|||
dlz_name=','.join([dlz for dlz in dlz_name])
|
||||
epo_names=[]
|
||||
mdc_names=[]
|
||||
mdc_descs=[]
|
||||
iron_names=[]
|
||||
fee=0
|
||||
lab=0
|
||||
|
@ -124,6 +125,7 @@ class HDCase(Model):
|
|||
sign=-1
|
||||
if categ.parent_id:
|
||||
if categ.parent_id.code=='MDC':
|
||||
mdc_descs.append(prod.description or "")
|
||||
if reimbursable_ctx:
|
||||
if reimbursable_ctx==line.reimbursable:
|
||||
mdc+=amt
|
||||
|
@ -134,6 +136,7 @@ class HDCase(Model):
|
|||
mdc_items.setdefault(prod_name,0)
|
||||
mdc_items[prod_name]=line.qty
|
||||
if categ.code=='EPO':
|
||||
mdc_descs.append((prod.description or "").title())
|
||||
epo_names.append(prod_name.title())
|
||||
mdc_items.setdefault(prod_name,0)
|
||||
mdc_items[prod_name]=line.qty
|
||||
|
@ -160,6 +163,7 @@ class HDCase(Model):
|
|||
res[obj.id]={
|
||||
'epo': ','.join([n for n in epo_names]),
|
||||
'mdc_name': ','.join([n for n in mdc_names]),
|
||||
'mdc_desc': ','.join([n for n in mdc_descs]),
|
||||
'mdc_items': str(mdc_items),
|
||||
'iron_name': ','.join([n for n in iron_names]),
|
||||
'fee': fee,
|
||||
|
@ -228,7 +232,8 @@ class HDCase(Model):
|
|||
"dlz_id": fields.Integer("DZ ID",function="_get_expense",function_multi=True),
|
||||
"mdc": fields.Float("MDC",function="_get_expense",function_multi=True),
|
||||
"srv": fields.Float("Service",function="_get_expense",function_multi=True),
|
||||
"mdc_name": fields.Float("MDC Name",function="_get_expense",function_multi=True),
|
||||
"mdc_name": fields.Char("MDC Name",function="_get_expense",function_multi=True),
|
||||
"mdc_desc": fields.Char("MDC Desc",function="_get_expense",function_multi=True),
|
||||
"mdc_items": fields.Float("MDC Items",function="_get_expense",function_multi=True),
|
||||
"iron_name": fields.Float("Iron Name",function="_get_expense",function_multi=True),
|
||||
'sickbed_id': fields.Many2One("clinic.sickbed",'Sickbed'),
|
||||
|
|
|
@ -176,6 +176,7 @@ class ReportCycleItem(Model):
|
|||
'hdcase_number': reformat_number(hdcase.number),
|
||||
'hdcase_id': hdcase.id,
|
||||
'mdc_name': hdcase.mdc_name or hdcase.epo,
|
||||
'mdc_desc': hdcase.mdc_desc,
|
||||
'mdc_items': hdcase.mdc_items,
|
||||
'iron_name': hdcase.iron_name or '',
|
||||
'fee': abs(hdcase.fee),
|
||||
|
|
Binary file not shown.
|
@ -38,7 +38,7 @@
|
|||
<td><a href="/ui#name=clinic_patient&active_id={{pid}}&mode=form">{{pname}}</a></td>
|
||||
<td><a href="/ui#name=clinic_staff&active_id={{did}}&mode=form">{{dname}}</a></td>
|
||||
<td><a href="/ui#name=clinic_patient_type&active_id={{tid}}&mode=form">{{tname}}</a></td>
|
||||
<td style="text-align:left">{{mdc_name}}</td>
|
||||
<td style="text-align:left">{{mdc_desc}}</td>
|
||||
<td style="text-align:left">{{iron_name}}</td>
|
||||
<td style="text-align:right">{{hct}}</td>
|
||||
<td><a href="/ui#name=clinic_dialyzer&active_id={{dlz_id}}&mode=form">{{dlz_name}}</a></td>
|
||||
|
@ -62,7 +62,7 @@
|
|||
<td><a href="/ui#name=clinic_patient&active_id={{pid}}&mode=form">{{pname}}</a></td>
|
||||
<td><a href="/ui#name=clinic_staff&active_id={{did}}&mode=form">{{dname}}</a></td>
|
||||
<td><a href="/ui#name=clinic_patient_type&active_id={{tid}}&mode=form">{{tname}}</a></td>
|
||||
<td style="text-align:left">{{mdc_name}}</td>
|
||||
<td style="text-align:left">{{mdc_desc}}</td>
|
||||
<td style="text-align:left">{{iron_name}}</td>
|
||||
<td style="text-align:right">{{hct}}</td>
|
||||
<td><a href="/ui#name=clinic_dialyzer&active_id={{dlz_id}}&mode=form">{{dlz_name}}</a></td>
|
||||
|
|
Loading…
Reference in New Issue