1
0
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:
Hillel Coren 2017-03-03 12:10:30 +02:00
parent cd16988ebc
commit be27c62b68
2 changed files with 0 additions and 10 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}