From caccf2dee8e23b9a4868174f802ea8942483d240 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Fri, 8 Jan 2016 15:08:49 +0700 Subject: [PATCH] copy date to receipt after pay in hdcase --- netforce_clinic/models/hd_case.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netforce_clinic/models/hd_case.py b/netforce_clinic/models/hd_case.py index bd51cb6..11d1fc5 100644 --- a/netforce_clinic/models/hd_case.py +++ b/netforce_clinic/models/hd_case.py @@ -520,7 +520,8 @@ class HDCase(Model): "company_id": company_id, "type": "in", "pay_type": "direct", - 'date': time.strftime("%Y-%m-%d"), + #'date': time.strftime("%Y-%m-%d"), + 'date': obj.date, "account_id": cash_account_id, 'related_id': "clinic.hd.case,%s"%obj.id, 'ref': bill_no or obj.number or "",