Add retail/restaurant mode toggle to the register
Deploy Ladill POS / deploy (push) Successful in 45s
Deploy Ladill POS / deploy (push) Successful in 45s
A segmented Retail | Restaurant control in the register header flips the location's service_style in place (RegisterController@setMode → pos.mode.set). Switching to restaurant lands on the Floor and reveals Floor/Kitchen/Menu in the sidebar; switching to retail stays on the register. Covered by PosRestaurantTest. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
1bbc9490f1
commit
0d816daed3
@@ -51,6 +51,7 @@ Route::middleware(['auth', 'platform.session'])->group(function () {
|
||||
|
||||
Route::get('/register', [RegisterController::class, 'index'])->name('pos.register');
|
||||
Route::post('/register/charge', [RegisterController::class, 'charge'])->name('pos.register.charge');
|
||||
Route::post('/register/mode', [RegisterController::class, 'setMode'])->name('pos.mode.set');
|
||||
|
||||
Route::get('/sales', [SaleController::class, 'index'])->name('pos.sales.index');
|
||||
Route::get('/sales/{sale}', [SaleController::class, 'show'])->name('pos.sales.show');
|
||||
|
||||
Reference in New Issue
Block a user