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

Added invoice_date to required fields

This commit is contained in:
Hillel Coren 2016-08-28 13:14:28 +03:00
parent 9feddabd4b
commit fda1fc439f
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class CreateInvoiceRequest extends InvoiceRequest
'invoice_items' => 'valid_invoice_items', 'invoice_items' => 'valid_invoice_items',
'invoice_number' => 'required|unique:invoices,invoice_number,,id,account_id,' . $this->user()->account_id, 'invoice_number' => 'required|unique:invoices,invoice_number,,id,account_id,' . $this->user()->account_id,
'discount' => 'positive', 'discount' => 'positive',
//'invoice_date' => 'date', 'invoice_date' => 'required',
//'due_date' => 'date', //'due_date' => 'date',
//'start_date' => 'date', //'start_date' => 'date',
//'end_date' => 'date', //'end_date' => 'date',

View File

@ -26,7 +26,7 @@ class UpdateInvoiceRequest extends InvoiceRequest
'invoice_items' => 'valid_invoice_items', 'invoice_items' => 'valid_invoice_items',
'invoice_number' => 'required|unique:invoices,invoice_number,' . $invoiceId . ',id,account_id,' . $this->user()->account_id, 'invoice_number' => 'required|unique:invoices,invoice_number,' . $invoiceId . ',id,account_id,' . $this->user()->account_id,
'discount' => 'positive', 'discount' => 'positive',
//'invoice_date' => 'date', 'invoice_date' => 'required',
//'due_date' => 'date', //'due_date' => 'date',
//'start_date' => 'date', //'start_date' => 'date',
//'end_date' => 'date', //'end_date' => 'date',