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:
parent
9feddabd4b
commit
fda1fc439f
@ -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',
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user