mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
commit
3b2574eeaa
@ -38,10 +38,10 @@ class UpdateTaxRateRequest extends Request
|
||||
|
||||
$rules = [];
|
||||
|
||||
$rules['rate'] = 'required|numeric';
|
||||
$rules['rate'] = 'sometimes|numeric';
|
||||
|
||||
if ($this->name) {
|
||||
$rules['name'] = Rule::unique('tax_rates')->where('company_id', auth()->user()->company()->id)->ignore($this->tax_rate->id);
|
||||
$rules['name'] = Rule::unique('tax_rates')->where('company_id', $user->company()->id)->ignore($this->tax_rate->id);
|
||||
}
|
||||
|
||||
return $rules;
|
||||
|
@ -29,6 +29,8 @@ class TaxRateApiTest extends TestCase
|
||||
use DatabaseTransactions;
|
||||
use MockAccountData;
|
||||
|
||||
public $faker;
|
||||
|
||||
protected function setUp() :void
|
||||
{
|
||||
parent::setUp();
|
||||
|
Loading…
Reference in New Issue
Block a user