|
|
@ -326,7 +326,7 @@ def update_drug_remain():
|
|
|
|
remain = request.values.get("remain")
|
|
|
|
remain = request.values.get("remain")
|
|
|
|
obj = BllMedicament().findEntity(EntityMedicament.medicament_id==drug_id)
|
|
|
|
obj = BllMedicament().findEntity(EntityMedicament.medicament_id==drug_id)
|
|
|
|
if obj:
|
|
|
|
if obj:
|
|
|
|
if not obj.remain:
|
|
|
|
if not remain:
|
|
|
|
setattr(obj, "status", "3")
|
|
|
|
setattr(obj, "status", "3")
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
setattr(obj, "remain", remain)
|
|
|
|
setattr(obj, "remain", remain)
|
|
|
|