Commit 6237c5ed by 赵增煜

只有未作废的处方单中的药品参与计算

parent db9a47f6
......@@ -117,6 +117,7 @@ public function drugLimit(Request $request)
$sevenDaysAgo = Carbon::now()->subDays(7);
$prescriptions = PrescriptionModel::where('patient_id', $patient_id)
->where('is_voided', PrescriptionModel::IS_VOIDED_FALSE) // 未作废的处方
->where('status', PrescriptionModel::PRESCRIPTION_STATUS_SUCCESS)
->where('pharmacy_id', $pharmacy_id)
->where('created_at', '>=', $sevenDaysAgo)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment