Deploy Ladill Mini / deploy (push) Successful in 23s
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>
17 lines
377 B
PHP
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')],
|
|
);
|
|
}
|
|
}
|