1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fixes for unique taxrate constraint on update

This commit is contained in:
David Bomba 2021-01-04 08:22:42 +11:00
parent e791741efa
commit 8653cc6114

View File

@ -28,7 +28,8 @@ class UpdateTaxRateRequest extends Request
public function rules()
{
return [
'name' => 'unique:tax_rates,name,'.$this->tax_rate->name.',id,company_id,'.auth()->user()->companyId(),
// 'name' => 'unique:tax_rates,name,'.$this->tax_rate->name.',id,company_id,'.auth()->user()->companyId(),
'name' => 'unique:tax_rates,name,'.$this->id.',id,company_id,'.$this->company_id,
'rate' => 'numeric',
];
}