Count stock and correct the differences on confirmation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user