diff --git a/netforce_clinic/models/hd_case.py b/netforce_clinic/models/hd_case.py index 5ac0f51..ef785fe 100644 --- a/netforce_clinic/models/hd_case.py +++ b/netforce_clinic/models/hd_case.py @@ -120,10 +120,10 @@ class HDCase(Model): sign=-1 if categ.parent_id: if categ.parent_id.code=='MDC': - name=prod.name or "" - #name=name.split("-") - name=name.replace("-SSO","") - name=name.title() + name=prod.description or prod.name or "" + ##name=name.split("-") + #name=name.replace("-SSO","") + #name=name.title() #name=name[0].title() if reimbursable_ctx: if reimbursable_ctx==line.reimbursable: @@ -133,11 +133,11 @@ class HDCase(Model): mdc+=amt mdc_names.append(name or "") if categ.code=='EPO': - name=prod.name or "" - name=name.split("-") - if name: - name=name[0].title() - epo_names.append(name) + name=prod.description or prod.name or "" + #name=name.split("-") + #if name: + #name=name[0].title() + epo_names.append(name.title()) elif categ.code=='FEE': fee+=amt*sign elif categ.code=='DLZ': diff --git a/netforce_clinic/templates/report_account_hd_case_summary.hbs b/netforce_clinic/templates/report_account_hd_case_summary.hbs index 5a6ac69..3d36ab0 100644 --- a/netforce_clinic/templates/report_account_hd_case_summary.hbs +++ b/netforce_clinic/templates/report_account_hd_case_summary.hbs @@ -89,7 +89,7 @@ {{view "link" string=inv_number action="cust_invoice" action_options="form_view_xml&cust_invoice_form&mode=form" active_id=inv_id}} {{/if}} -