Ensure the client is saved prior to getting a number back
This commit is contained in:
parent
52d2172953
commit
673f188100
1 changed files with 2 additions and 1 deletions
|
|
@ -63,7 +63,8 @@ class ClientRepository extends BaseRepository
|
|||
}
|
||||
|
||||
$client->fill($data);
|
||||
|
||||
$client->save();
|
||||
|
||||
if (!isset($client->number) || empty($client->number)) {
|
||||
$client->number = $this->getNextClientNumber($client);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue