From c19c6f2d30405e1496e471981ee2da95c676e6a0 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Wed, 1 Oct 2014 14:47:50 +0700 Subject: [PATCH] xxx --- .../__pycache__/__init__.cpython-32.pyc | Bin 159 -> 0 bytes netforce_clinic/layouts/clinic_doctor_form.xml | 1 + netforce_clinic/models/clinic_hd_case.py | 4 ++-- 3 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 netforce_clinic/controllers/__pycache__/__init__.cpython-32.pyc diff --git a/netforce_clinic/controllers/__pycache__/__init__.cpython-32.pyc b/netforce_clinic/controllers/__pycache__/__init__.cpython-32.pyc deleted file mode 100644 index ccf8cbcf10a19f73d287992ec65370d6032e3232..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 159 zcmd1d;pJlgCm)i`fCLzUYzH7NW&si@3=F{(c_l^pIXS6C#rpB_KqV#d@p=W7r5r$mY;yBcN^?@} KK-LulF#`bk<|H@( diff --git a/netforce_clinic/layouts/clinic_doctor_form.xml b/netforce_clinic/layouts/clinic_doctor_form.xml index fedde8b..3a026ba 100644 --- a/netforce_clinic/layouts/clinic_doctor_form.xml +++ b/netforce_clinic/layouts/clinic_doctor_form.xml @@ -14,6 +14,7 @@ + diff --git a/netforce_clinic/models/clinic_hd_case.py b/netforce_clinic/models/clinic_hd_case.py index 86b2821..0b45049 100644 --- a/netforce_clinic/models/clinic_hd_case.py +++ b/netforce_clinic/models/clinic_hd_case.py @@ -193,9 +193,9 @@ class Hdcase(Model): for obj in self.browse(ids): total=0 amt=0 - fee=obj.fee + fee=obj.fee or 0 for line in obj.lines_detail: - total+=line.total + total+=line.total or 0 amt=total+fee vals[obj.id]={ "total": total,