diff --git a/Modules/Internal/Http/Controllers/Api/DrugController.php b/Modules/Internal/Http/Controllers/Api/DrugController.php index b43b17ea..8d46018e 100755 --- a/Modules/Internal/Http/Controllers/Api/DrugController.php +++ b/Modules/Internal/Http/Controllers/Api/DrugController.php @@ -41,6 +41,7 @@ class DrugController extends Controller 'label' => $drug->name, 'code' => $drug->code, 'price' => $drug->price, + 'unit' => $drug->unit, ]; }); return Helper::responseJson(data: $manipulatedDrugs); diff --git a/app/Models/Drug.php b/app/Models/Drug.php index 84028837..1d6d77f0 100755 --- a/app/Models/Drug.php +++ b/app/Models/Drug.php @@ -28,6 +28,7 @@ class Drug extends Model 'status', 'price', 'active', + 'unit' ]; public function categories()