Add multi-branch POS with team roles and branch-scoped cashiers.
Deploy Ladill POS / deploy (push) Successful in 1m58s
Deploy Ladill POS / deploy (push) Successful in 1m58s
Pro and Business users can manage branches, invite cashiers with branch assignment, and switch registers; sales and register flows respect acting location. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -19,16 +19,16 @@ class TableController extends Controller
|
||||
public function index(Request $request): View
|
||||
{
|
||||
$owner = $this->ownerRef($request);
|
||||
$location = $this->locations->ensureDefault($owner);
|
||||
$location = $this->location($request);
|
||||
|
||||
$tables = PosTable::owned($owner)
|
||||
$tables = $this->scopeToLocation($request, PosTable::owned($owner))
|
||||
->with('currentSale')
|
||||
->orderBy('area')
|
||||
->orderBy('position')
|
||||
->orderBy('label')
|
||||
->get();
|
||||
|
||||
$openTickets = PosSale::owned($owner)
|
||||
$openTickets = $this->scopeToLocation($request, PosSale::owned($owner))
|
||||
->openTickets()
|
||||
->with('table')
|
||||
->withCount('lines')
|
||||
|
||||
Reference in New Issue
Block a user