mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Remove unneeded check
This commit is contained in:
parent
cd16988ebc
commit
be27c62b68
@ -35,11 +35,6 @@ class CreateInvoiceAPIRequest extends InvoiceRequest
|
||||
//'end_date' => 'date',
|
||||
];
|
||||
|
||||
if ($this->user()->account->client_number_counter) {
|
||||
$clientId = Client::getPrivateId(request()->input('client')['public_id']);
|
||||
$rules['client.id_number'] = 'unique:clients,id_number,'.$clientId.',id,account_id,' . $this->user()->account_id;
|
||||
}
|
||||
|
||||
return $rules;
|
||||
}
|
||||
}
|
||||
|
@ -39,11 +39,6 @@ class UpdateInvoiceAPIRequest extends InvoiceRequest
|
||||
//'end_date' => 'date',
|
||||
];
|
||||
|
||||
if ($this->user()->account->client_number_counter) {
|
||||
$clientId = Client::getPrivateId(request()->input('client')['public_id']);
|
||||
$rules['client.id_number'] = 'unique:clients,id_number,'.$clientId.',id,account_id,' . $this->user()->account_id;
|
||||
}
|
||||
|
||||
return $rules;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user