mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01:00
Disabled broken date validation
This commit is contained in:
parent
5b99f31805
commit
b9bc022a2a
@ -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…
Reference in New Issue
Block a user