decouple document number generation
This commit is contained in:
12
app/Interfaces/Service/DocumentNumberService.php
Normal file
12
app/Interfaces/Service/DocumentNumberService.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Interfaces\Service;
|
||||
|
||||
use App\Models\Common\Contact;
|
||||
|
||||
interface DocumentNumberService
|
||||
{
|
||||
public function getNextDocumentNumber(string $type, ?Contact $contact): string;
|
||||
|
||||
public function increaseNextDocumentNumber(string $type, ?Contact $contact): void;
|
||||
}
|
Reference in New Issue
Block a user