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,