mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:44:29 -04:00
Disable date validation
This commit is contained in:
parent
c5eed8f902
commit
f7e499da4d
@ -25,10 +25,10 @@ class CreateInvoiceAPIRequest extends InvoiceRequest
|
|||||||
'invoice_items' => 'valid_invoice_items',
|
'invoice_items' => 'valid_invoice_items',
|
||||||
'invoice_number' => 'unique:invoices,invoice_number,,id,account_id,' . $this->user()->account_id,
|
'invoice_number' => 'unique:invoices,invoice_number,,id,account_id,' . $this->user()->account_id,
|
||||||
'discount' => 'positive',
|
'discount' => 'positive',
|
||||||
'invoice_date' => 'date',
|
//'invoice_date' => 'date',
|
||||||
'due_date' => 'date',
|
//'due_date' => 'date',
|
||||||
'start_date' => 'date',
|
//'start_date' => 'date',
|
||||||
'end_date' => 'date',
|
//'end_date' => 'date',
|
||||||
];
|
];
|
||||||
|
|
||||||
return $rules;
|
return $rules;
|
||||||
|
@ -24,10 +24,10 @@ 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' => 'date',
|
||||||
'due_date' => 'date',
|
//'due_date' => 'date',
|
||||||
'start_date' => 'date',
|
//'start_date' => 'date',
|
||||||
'end_date' => 'date',
|
//'end_date' => 'date',
|
||||||
];
|
];
|
||||||
|
|
||||||
/* There's a problem parsing the dates
|
/* There's a problem parsing the dates
|
||||||
|
@ -29,10 +29,10 @@ class UpdateInvoiceAPIRequest extends InvoiceRequest
|
|||||||
'invoice_items' => 'valid_invoice_items',
|
'invoice_items' => 'valid_invoice_items',
|
||||||
'invoice_number' => 'unique:invoices,invoice_number,' . $invoiceId . ',id,account_id,' . $this->user()->account_id,
|
'invoice_number' => 'unique:invoices,invoice_number,' . $invoiceId . ',id,account_id,' . $this->user()->account_id,
|
||||||
'discount' => 'positive',
|
'discount' => 'positive',
|
||||||
'invoice_date' => 'date',
|
//'invoice_date' => 'date',
|
||||||
'due_date' => 'date',
|
//'due_date' => 'date',
|
||||||
'start_date' => 'date',
|
//'start_date' => 'date',
|
||||||
'end_date' => 'date',
|
//'end_date' => 'date',
|
||||||
];
|
];
|
||||||
|
|
||||||
return $rules;
|
return $rules;
|
||||||
|
@ -26,10 +26,10 @@ 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' => 'date',
|
||||||
'due_date' => 'date',
|
//'due_date' => 'date',
|
||||||
'start_date' => 'date',
|
//'start_date' => 'date',
|
||||||
'end_date' => 'date',
|
//'end_date' => 'date',
|
||||||
];
|
];
|
||||||
|
|
||||||
/* There's a problem parsing the dates
|
/* There's a problem parsing the dates
|
||||||
|
Loading…
x
Reference in New Issue
Block a user