diff --git a/netforce_clinic/models/report_cycle_item.py b/netforce_clinic/models/report_cycle_item.py index 7cb0cc1..78e5f41 100644 --- a/netforce_clinic/models/report_cycle_item.py +++ b/netforce_clinic/models/report_cycle_item.py @@ -133,6 +133,12 @@ class ReportCycleItem(Model): dlz_drop=True cancel=False row_color='' + def reformat_number(number=''): + if not number: + return "" + number=number.replace("HDC/","") + number=number.replace("HDC-","") + return number lines.append({ 'dlz_drop': dlz_drop, 'cancel': cancel, @@ -147,6 +153,8 @@ class ReportCycleItem(Model): 'date': hdcase.date, 'epo': hdcase.epo, 'mdc': hdcase.mdc, + 'hdcase_number': reformat_number(hdcase.number), + 'hdcase_id': hdcase.id, 'mdc_name': hdcase.mdc_name or hdcase.epo, 'fee': abs(hdcase.fee), 'dlz_name': hdcase.dlz_name, diff --git a/netforce_clinic/templates/report_cycle_item.hbs b/netforce_clinic/templates/report_cycle_item.hbs index 3094f61..494f853 100644 --- a/netforce_clinic/templates/report_cycle_item.hbs +++ b/netforce_clinic/templates/report_cycle_item.hbs @@ -9,6 +9,7 @@