Disabled broken date validation
This commit is contained in:
parent
5b99f31805
commit
b9bc022a2a
4 changed files with 16 additions and 16 deletions
|
|
@ -25,10 +25,10 @@ class CreateInvoiceAPIRequest extends InvoiceRequest
|
|||
'invoice_items' => 'valid_invoice_items',
|
||||
'invoice_number' => 'unique:invoices,invoice_number,,id,account_id,' . $this->user()->account_id,
|
||||
'discount' => 'positive',
|
||||
'invoice_date' => 'date',
|
||||
'due_date' => 'date',
|
||||
'start_date' => 'date',
|
||||
'end_date' => 'date',
|
||||
//'invoice_date' => 'date',
|
||||
//'due_date' => 'date',
|
||||
//'start_date' => 'date',
|
||||
//'end_date' => 'date',
|
||||
];
|
||||
|
||||
return $rules;
|
||||
|
|
|
|||
|
|
@ -24,10 +24,10 @@ 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',
|
||||
'due_date' => 'date',
|
||||
'start_date' => 'date',
|
||||
'end_date' => 'date',
|
||||
'invoice_date' => 'required',
|
||||
//'due_date' => 'date',
|
||||
//'start_date' => 'date',
|
||||
//'end_date' => 'date',
|
||||
];
|
||||
|
||||
/* There's a problem parsing the dates
|
||||
|
|
|
|||
|
|
@ -29,10 +29,10 @@ class UpdateInvoiceAPIRequest extends InvoiceRequest
|
|||
'invoice_items' => 'valid_invoice_items',
|
||||
'invoice_number' => 'unique:invoices,invoice_number,' . $invoiceId . ',id,account_id,' . $this->user()->account_id,
|
||||
'discount' => 'positive',
|
||||
'invoice_date' => 'date',
|
||||
'due_date' => 'date',
|
||||
'start_date' => 'date',
|
||||
'end_date' => 'date',
|
||||
//'invoice_date' => 'date',
|
||||
//'due_date' => 'date',
|
||||
//'start_date' => 'date',
|
||||
//'end_date' => 'date',
|
||||
];
|
||||
|
||||
return $rules;
|
||||
|
|
|
|||
|
|
@ -26,10 +26,10 @@ 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',
|
||||
'due_date' => 'date',
|
||||
'start_date' => 'date',
|
||||
'end_date' => 'date',
|
||||
//'invoice_date' => 'date',
|
||||
//'due_date' => 'date',
|
||||
//'start_date' => 'date',
|
||||
//'end_date' => 'date',
|
||||
];
|
||||
|
||||
/* There's a problem parsing the dates
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue