From 7df6063b3b72c65b38f4db1645d44e1573ae2841 Mon Sep 17 00:00:00 2001 From: tangxuan <2233783319@qq.com> Date: Mon, 3 Apr 2023 15:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89=E4=BD=99?= =?UTF-8?q?=E9=87=8F=E5=80=BC=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db_logic/medicament.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_logic/medicament.py b/db_logic/medicament.py index 846a1c1..03a94a0 100644 --- a/db_logic/medicament.py +++ b/db_logic/medicament.py @@ -356,7 +356,7 @@ class BllMedicament(Repository): price=entityDrug.price, record_type=DrugRecordType.Use, is_empty=0, - record_remain=float(entityDrug.remain), + record_remain=float(entityDrug.remain) if entityDrug.remain else 0, create_date=Utils.get_str_datetime(), create_user_id=entityUser.user_id, create_user_name=entityUser.real_name,