From 750d7de80812a568f95a5f166430749d1faec5b2 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Wed, 18 Nov 2015 12:08:54 +0700 Subject: [PATCH] merge amt of product categ ivr, fine and dlz to misc --- netforce_clinic/models/report_account_hd_case_summary.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/netforce_clinic/models/report_account_hd_case_summary.py b/netforce_clinic/models/report_account_hd_case_summary.py index 5ded9b8..58203bd 100644 --- a/netforce_clinic/models/report_account_hd_case_summary.py +++ b/netforce_clinic/models/report_account_hd_case_summary.py @@ -216,8 +216,13 @@ class ReportAccountHDCaseSummary(Model): records[hdcase_id]['misc']+=amt else: records[hdcase_id]['misc']+=amt - lines=[] + #print('merge product categ of ivr, fine and dlz to misc') + records[hdcase_id]['misc']+=records[hdcase_id]['ivr'] + records[hdcase_id]['misc']+=records[hdcase_id]['fine'] + records[hdcase_id]['misc']+=records[hdcase_id]['dlz'] + + lines=[] # nurse would like to see only receipt del_invoice=False del_receipt=False