修复没有余量值异常

duizhaopin
tangxuan 2 years ago
parent a4166410ba
commit 7df6063b3b

@ -356,7 +356,7 @@ class BllMedicament(Repository):
price=entityDrug.price, price=entityDrug.price,
record_type=DrugRecordType.Use, record_type=DrugRecordType.Use,
is_empty=0, 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_date=Utils.get_str_datetime(),
create_user_id=entityUser.user_id, create_user_id=entityUser.user_id,
create_user_name=entityUser.real_name, create_user_name=entityUser.real_name,

Loading…
Cancel
Save