Rename SerialNumberFormatter to SerialNumberService for consistency

This commit is contained in:
Darko Gjorgjijoski
2026-04-03 16:09:22 +02:00
parent e208e3ba56
commit e0b8b86e06
14 changed files with 26 additions and 29 deletions

View File

@@ -28,7 +28,7 @@ class PaymentService
$payment = Payment::create($data);
$payment->unique_hash = Hashids::connection(Payment::class)->encode($payment->id);
$serial = (new SerialNumberFormatter)
$serial = (new SerialNumberService)
->setModel($payment)
->setCompany($payment->company_id)
->setCustomer($payment->customer_id)
@@ -78,7 +78,7 @@ class PaymentService
$invoice->subtractInvoicePayment($request->amount);
}
$serial = (new SerialNumberFormatter)
$serial = (new SerialNumberService)
->setModel($payment)
->setCompany($payment->company_id)
->setCustomer($request->customer_id)
@@ -191,7 +191,7 @@ class PaymentService
{
$invoice = Invoice::find($transaction->invoice_id);
$serial = (new SerialNumberFormatter)
$serial = (new SerialNumberService)
->setModel(new Payment)
->setCompany($invoice->company_id)
->setCustomer($invoice->customer_id)