mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor change to checking valid invoice number rule
This commit is contained in:
parent
e347c5ad51
commit
2ee7c429bd
@ -60,7 +60,7 @@ class UniqueInvoiceNumberRule implements Rule
|
|||||||
$invoice = Invoice::where('client_id', $this->input['client_id'])
|
$invoice = Invoice::where('client_id', $this->input['client_id'])
|
||||||
->where('number', $this->input['number'])
|
->where('number', $this->input['number'])
|
||||||
->withTrashed()
|
->withTrashed()
|
||||||
->first();
|
->exists();
|
||||||
|
|
||||||
if($invoice)
|
if($invoice)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user