Minor change to checking valid invoice number rule
This commit is contained in:
parent
e347c5ad51
commit
2ee7c429bd
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ class UniqueInvoiceNumberRule implements Rule
|
|||
$invoice = Invoice::where('client_id', $this->input['client_id'])
|
||||
->where('number', $this->input['number'])
|
||||
->withTrashed()
|
||||
->first();
|
||||
->exists();
|
||||
|
||||
if($invoice)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue