Files
ladill-pos/app/Services/Pos/PosLocationService.php
T
isaaccladandCursor e5d2b84388
Deploy Ladill Mini / deploy (push) Successful in 23s
Add Ladill POS v1 — register, Pay checkout, and commerce links.
Staff-facing counter register at pos.ladill.com with catalog cart, cash and
MoMo/card checkout via Ladill Pay, CRM timeline/import, invoice prefill, and
Merchant catalog import.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-23 22:52:24 +00:00

17 lines
377 B
PHP

<?php
namespace App\Services\Pos;
use App\Models\PosLocation;
class PosLocationService
{
public function ensureDefault(string $ownerRef): PosLocation
{
return PosLocation::owned($ownerRef)->firstOrCreate(
['owner_ref' => $ownerRef, 'name' => 'Main register'],
['currency' => config('pos.default_currency', 'GHS')],
);
}
}