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:
parent
dffb9be189
commit
07e8ded6a7
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user