1
0
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:
Hillel Coren 2016-09-05 08:20:51 +03:00
parent 5b99f31805
commit b9bc022a2a
4 changed files with 16 additions and 16 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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