mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fix for editting invoice where number in pending state
This commit is contained in:
parent
f45588d26e
commit
3ad3d0a418
@ -49,7 +49,7 @@ class UpdateInvoiceRequest extends Request
|
||||
|
||||
$rules['id'] = new LockedInvoiceRule($this->invoice);
|
||||
|
||||
if ($this->input('number')) {
|
||||
if ($this->input('number') && strlen($this->input('number')) >= 1) {
|
||||
$rules['number'] = 'unique:invoices,number,'.$this->id.',id,company_id,'.$this->invoice->company_id;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user