1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Merge pull request #708 from turbo124/master

Validation rule realignment
This commit is contained in:
David Bomba 2016-02-10 08:51:43 +11:00
commit 04807bccc6

View File

@ -32,7 +32,7 @@ class UpdateInvoiceRequest extends Request
$invoiceId = Invoice::getPrivateId($publicId);
$rules = [
'invoice_items' => 'required|valid_invoice_items',
'invoice_items' => 'valid_invoice_items',
'invoice_number' => 'unique:invoices,invoice_number,'.$invoiceId.',id,account_id,'.Auth::user()->account_id,
'discount' => 'positive',
];