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

Fixes for credit/quote update request

This commit is contained in:
David Bomba 2020-08-14 13:35:58 +10:00
parent dffb9be189
commit 07e8ded6a7
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class UpdateCreditRequest extends FormRequest
}
if($this->input('number'))
$rules['number'] = 'unique:quotes,number,' . $this->id . ',id,company_id,' . $this->invoice->company_id;
$rules['number'] = 'unique:quotes,number,' . $this->id . ',id,company_id,' . $this->credit->company_id;
return $rules;
}

View File

@ -51,7 +51,7 @@ class UpdateQuoteRequest extends Request
}
if($this->input('number'))
$rules['number'] = 'unique:quotes,number,' . $this->id . ',id,company_id,' . $this->invoice->company_id;
$rules['number'] = 'unique:quotes,number,' . $this->id . ',id,company_id,' . $this->quote->company_id;
return $rules;