@@ -252,8 +252,7 @@ class BasicDataService extends BaseService
|
||||
if (isset($pharmacy_id) && $pharmacy_id !== '') {
|
||||
$pharmacy = Pharmacy::getValidPharmacy($pharmacy_id);
|
||||
} else {
|
||||
$defaultPharmacy = DoctorPharmacy::getDoctorDefaultPharmacy($doctor_id);
|
||||
$pharmacy = ($defaultPharmacy && $defaultPharmacy->Pharmacy && $defaultPharmacy->Pharmacy->status == 1) ? $defaultPharmacy->Pharmacy : null;
|
||||
$pharmacy = DoctorPharmacy::getDoctorDefaultPharmacy($doctor_id);
|
||||
}
|
||||
|
||||
if (empty($pharmacy) || empty($pharmacy->pharmacy_code)) {
|
||||
@@ -477,8 +476,7 @@ class BasicDataService extends BaseService
|
||||
if (isset($pharmacy_id) && $pharmacy_id !== '') {
|
||||
$pharmacy = Pharmacy::getValidPharmacy($pharmacy_id);
|
||||
} else {
|
||||
$defaultPharmacy = DoctorPharmacy::getDoctorDefaultPharmacy($doctor_id);
|
||||
$pharmacy = ($defaultPharmacy && $defaultPharmacy->Pharmacy && $defaultPharmacy->Pharmacy->status == 1) ? $defaultPharmacy->Pharmacy : null;
|
||||
$pharmacy = DoctorPharmacy::getDoctorDefaultPharmacy($doctor_id);
|
||||
}
|
||||
|
||||
if (empty($pharmacy) || empty($pharmacy->pharmacy_code)) {
|
||||
|
||||
Reference in New Issue
Block a user