Commit Graph
7 Commits
Author SHA1 Message Date
Malek TellissiandClaude Sonnet 4.6 0500cab160 Fix: admin/manager land on edit page, viewer on view page
Deploy / deploy (push) Successful in 16s
Filament checks view before edit for row URL. Added a shared
ViewRecord base that redirects to edit if canEdit() is true,
so admins and managers get the editable form directly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-13 03:05:05 +02:00
Malek TellissiandClaude Sonnet 4.6 1494273efd Add viewer access to records and restrict activity log
Deploy / deploy (push) Successful in 16s
- canView() + canViewAny() in EnforcesRoles: all SMS roles can view
- View pages for all 7 resources so viewers can open records read-only
- Custom ActivityResource restricts activity log to admin + manager only

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-13 02:44:00 +02:00
Malek TellissiandClaude Sonnet 4.6 9501ff38d9 Redirect to list after creating Rohstofflieferung
Deploy / deploy (push) Successful in 16s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-13 01:04:09 +02:00
Malek TellissiandClaude Sonnet 4.6 fb19e9a579 Introduce spice_stock_movements ledger for traceable stock changes
Deploy / deploy (push) Successful in 16s
Every delivery and batch now writes a signed movement entry instead of
directly incrementing/decrementing spice.quantity. The balance is always
the sum of all movements. Existing data is backfilled in the migration.
Rohstoff edit page shows the full movement history (Lagerbewegungen tab).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-12 22:34:10 +02:00
Malek TellissiandClaude Sonnet 4.6 7545aed494 Fix delivery deletion: allow negative stock instead of clamping to 0
Deploy / deploy (push) Successful in 16s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-12 21:50:58 +02:00
Malek TellissiandClaude Sonnet 4.6 70eb5170d1 Allow deleting spice deliveries even with insufficient stock; warn instead of block
Deploy / deploy (push) Successful in 15s
Shows a warning in the confirmation dialog when stock would go below zero.
Deletion proceeds and sets stock to 0 rather than blocking the action.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-12 21:46:47 +02:00
Malek Tellissi 400172cdde Erster Upload 2026-09-11 01:17:47 +02:00