• DevPilot's avatar
    fix(inventory): fixed assets had no name, and no way back in to edit them · 39ee2678
    DevPilot authored
    Two things I got wrong when I opened up direct asset registration.
    
    **There was nowhere to type what the asset IS.** The register carried a tag, a
    category and a serial — the name was borrowed from `inventory_items.name_ar`,
    which works only while every asset comes from stock. A building, a court or a
    transformer has no stock row, so the detail screen showed an empty cell and the
    form never asked. The register is meant to be read by someone doing a physical
    count: "أثاث ومعدات" tells them nothing, "مكيف سبليت ٣ حصان — قاعة الاجتماعات"
    tells them exactly what to look for. `asset_name` is now a required field,
    backfilled from the linked item where there is one and from the category
    otherwise, so no existing row loses the name it was already showing. It is also
    searchable.
    
    **The edit route had no button.** `/inventory/assets/{id}/edit` existed and
    worked; nothing linked to it, so once an asset was saved there was no way back
    in from the UI. Buttons on both the detail page and the register rows, hidden
    for disposed assets since those are history.
    
    Also corrected the labels that direct registration made wrong: the column header
    and search hint still said "الصنف", and the empty state still claimed assets are
    only created automatically when stock of type "أصل" is received.
    
    Verified on a production clone: name saves, displays on both screens, is
    findable by search, both edit buttons render, 1503 routes resolve.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    39ee2678
Name
Last commit
Last update
..
Academies Loading commit data...
AcademyContracts Loading commit data...
AccessMatrix Loading commit data...
Accounting Loading commit data...
Achievements Loading commit data...
ActivitySubscriptions Loading commit data...
Alerts Loading commit data...
Archive Loading commit data...
Audit Loading commit data...
Auth Loading commit data...
Branches Loading commit data...
Carnets Loading commit data...
Cashier Loading commit data...
Children Loading commit data...
Coaches Loading commit data...
Dashboard Loading commit data...
Death Loading commit data...
Disciplines Loading commit data...
Divorce Loading commit data...
Documents Loading commit data...
Facilities Loading commit data...
FacilityDashboards Loading commit data...
FacilityGrids Loading commit data...
Fines Loading commit data...
Foreign Loading commit data...
Forms Loading commit data...
HR Loading commit data...
Honorary Loading commit data...
Installments Loading commit data...
Interviews Loading commit data...
Inventory Loading commit data...
MatchCenter Loading commit data...
MedicalBoard Loading commit data...
Members Loading commit data...
News Loading commit data...
Notifications Loading commit data...
ParentPortal Loading commit data...
Payments Loading commit data...
PlayerAffairs Loading commit data...
PlayerApi Loading commit data...
PlayerAuth Loading commit data...
PlaygroundAdmin Loading commit data...
PoolManagement Loading commit data...
Pricing Loading commit data...
Procurement Loading commit data...
Receipts Loading commit data...
Rentals Loading commit data...
Reports Loading commit data...
Reservations Loading commit data...
Roles Loading commit data...
Rules Loading commit data...
Sales Loading commit data...
Scheduling Loading commit data...
Seasonal Loading commit data...
ServiceCatalog Loading commit data...
Sessions Loading commit data...
Settings Loading commit data...
Sports Loading commit data...
SportsActivity Loading commit data...
SportsDashboard Loading commit data...
Spouses Loading commit data...
Subscriptions Loading commit data...
Support Loading commit data...
Temporary Loading commit data...
Tournaments Loading commit data...
TrainerPortal Loading commit data...
Training Loading commit data...
TrainingGroups Loading commit data...
Transfers Loading commit data...
Treasury Loading commit data...
Tutorials Loading commit data...
Users Loading commit data...
Waiver Loading commit data...
Workflow Loading commit data...