mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-08-03 06:16:14 -04:00
22 lines
412 B
PHP
22 lines
412 B
PHP
<?php
|
|
|
|
namespace Modules\StaffPayroll\Repositories;
|
|
|
|
use Modules\StaffPayroll\Entities\InvoiceSetting;
|
|
|
|
class InvoiceSettingRepository
|
|
{
|
|
public function __construct(
|
|
private InvoiceSetting $invoiceSetting
|
|
) {
|
|
}
|
|
|
|
public function getStartInvoiceNumber()
|
|
{
|
|
return InvoiceSetting::query()
|
|
->where('name', 'start_invoice_number')
|
|
->first()
|
|
->value ?? 1;
|
|
}
|
|
}
|