mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 05:31:24 +00:00
Allow decimals on items quantities (#94)
* Allow decimals on items quantities #80 * Updating all requests validation * Revert discount_val
This commit is contained in:
@@ -79,7 +79,7 @@ class EstimatesRequest extends FormRequest
|
||||
'required',
|
||||
],
|
||||
'items.*.quantity' => [
|
||||
'integer',
|
||||
'numeric',
|
||||
'required',
|
||||
],
|
||||
'items.*.price' => [
|
||||
|
||||
@@ -79,7 +79,7 @@ class InvoicesRequest extends FormRequest
|
||||
'required',
|
||||
],
|
||||
'items.*.quantity' => [
|
||||
'integer',
|
||||
'numeric',
|
||||
'required',
|
||||
],
|
||||
'items.*.price' => [
|
||||
|
||||
@@ -52,7 +52,6 @@ class RecurringInvoiceRequest extends FormRequest
|
||||
],
|
||||
'total' => [
|
||||
'integer',
|
||||
'numeric',
|
||||
'max:999999999999',
|
||||
'required',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user