Fixes for unique taxrate constraint on update
This commit is contained in:
parent
e791741efa
commit
8653cc6114
1 changed files with 2 additions and 1 deletions
|
|
@ -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',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue