mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Require invoice_items in invoice requests
This commit is contained in:
parent
4499fb7a19
commit
c9f532dc77
@ -34,7 +34,7 @@ class UpdateInvoiceAPIRequest extends InvoiceRequest
|
||||
$invoiceId = $this->entity()->id;
|
||||
|
||||
$rules = [
|
||||
'invoice_items' => 'valid_invoice_items',
|
||||
'invoice_items' => 'required|valid_invoice_items',
|
||||
'invoice_number' => 'unique:invoices,invoice_number,' . $invoiceId . ',id,account_id,' . $this->user()->account_id,
|
||||
'discount' => 'positive',
|
||||
//'invoice_date' => 'date',
|
||||
|
@ -31,7 +31,7 @@ class UpdateInvoiceRequest extends InvoiceRequest
|
||||
|
||||
$rules = [
|
||||
'client' => 'required',
|
||||
'invoice_items' => 'valid_invoice_items',
|
||||
'invoice_items' => 'required|valid_invoice_items',
|
||||
'invoice_number' => 'required|unique:invoices,invoice_number,' . $invoiceId . ',id,account_id,' . $this->user()->account_id,
|
||||
'discount' => 'positive',
|
||||
'invoice_date' => 'required',
|
||||
|
Loading…
Reference in New Issue
Block a user