From bc52ec93fe57992fc4175c3234bfbf30cfca6b59 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Tue, 9 Dec 2014 08:22:44 +0700 Subject: [PATCH] xxx --- netforce_clinic/models/report_staff_fee_sum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netforce_clinic/models/report_staff_fee_sum.py b/netforce_clinic/models/report_staff_fee_sum.py index b1144a5..be9718e 100644 --- a/netforce_clinic/models/report_staff_fee_sum.py +++ b/netforce_clinic/models/report_staff_fee_sum.py @@ -117,7 +117,7 @@ class ReportStaffFeeSum(Model): total_lines=[] for date in day_list: total_lines.append({ - 'amt': total_all[date], + 'amt': total_all.get(date,0), }) total_lines.append({ 'amt': round(total_sum,2),