@extends('layouts.app') @section('title', 'Backfill Supplier Categories') @section('content')
Tag pharmacy-likely suppliers as Pharmaceutical so they appear in the Receive Products dropdown.
How this works
The Receive Products dropdown now only shows suppliers tagged as Pharmaceutical. Suppliers created via the Pharmacy module historically had no category set — they would be invisible in the dropdown without this fix.
This tool scans suppliers with no category (or category = "General") and tags them as Pharmaceutical if their name matches any of: {{ implode(', ', $patterns) }}. Suppliers with other categories (Utilities, Services, etc.) are left untouched.
| Supplier | Current Category | Matched Keyword | After |
|---|---|---|---|
| {{ $row['name'] }} | {{ $row['before'] }} | {{ $row['matched'] }} | Pharmaceutical |
These untagged suppliers don't match any pharmacy keyword. If any of them are actually pharmacy suppliers, tag them manually via Expenses › Suppliers → Edit → Category → Pharmaceutical.
| Supplier | Current Category |
|---|---|
| {{ $row['name'] }} | {{ $row['before'] }} |