Added invoice_date to required fields
This commit is contained in:
parent
9feddabd4b
commit
fda1fc439f
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ class CreateInvoiceRequest extends InvoiceRequest
|
|||
'invoice_items' => 'valid_invoice_items',
|
||||
'invoice_number' => 'required|unique:invoices,invoice_number,,id,account_id,' . $this->user()->account_id,
|
||||
'discount' => 'positive',
|
||||
//'invoice_date' => 'date',
|
||||
'invoice_date' => 'required',
|
||||
//'due_date' => 'date',
|
||||
//'start_date' => 'date',
|
||||
//'end_date' => 'date',
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class UpdateInvoiceRequest extends InvoiceRequest
|
|||
'invoice_items' => 'valid_invoice_items',
|
||||
'invoice_number' => 'required|unique:invoices,invoice_number,' . $invoiceId . ',id,account_id,' . $this->user()->account_id,
|
||||
'discount' => 'positive',
|
||||
//'invoice_date' => 'date',
|
||||
'invoice_date' => 'required',
|
||||
//'due_date' => 'date',
|
||||
//'start_date' => 'date',
|
||||
//'end_date' => 'date',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue