Count stock and correct the differences on confirmation

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:34:08 +02:00
co-authored by Claude Sonnet 5.5
parent bca1eed166
commit 0de0e332b2
27 changed files with 1568 additions and 0 deletions
@@ -1,5 +1,6 @@
<?php
use App\Modules\Inventory\Presentation\Http\Controllers\DownloadInventoryCount;
use App\Modules\Inventory\Presentation\Http\Controllers\ShowStockItemImage;
use Illuminate\Support\Facades\Route;
@@ -20,4 +21,14 @@ Route::middleware(['web', 'auth', 'can:inventory.view'])
});
Route::livewire('/items/{item}', 'inventory::item')->whereNumber('item')->name('items.show');
Route::middleware('can:inventory.count')->group(function () {
Route::livewire('/counts', 'inventory::counts')->name('counts');
Route::livewire('/counts/{count}', 'inventory::count')->whereNumber('count')->name('counts.show');
});
Route::get('/counts/{count}/csv', DownloadInventoryCount::class)
->whereNumber('count')
->middleware('can:inventory.manage-counts')
->name('counts.csv');
});