Merge branch 'master' of github.com:akaunting/akaunting
This commit is contained in:
commit
e4f48905e0
@ -75,7 +75,7 @@ class Document extends FormRequest
|
|||||||
$size = 7;
|
$size = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
$rules['items.' . $key . '.quantity'] = 'required|max:' . $size . '|numeric|gt:0';
|
$rules['items.' . $key . '.quantity'] = 'required|numeric|gt:0|digits_between:1,' . $size;
|
||||||
$this->items_quantity_size[$key] = $size;
|
$this->items_quantity_size[$key] = $size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -107,7 +107,7 @@ class Document extends FormRequest
|
|||||||
|
|
||||||
if ($this->items_quantity_size) {
|
if ($this->items_quantity_size) {
|
||||||
foreach ($this->items_quantity_size as $key => $quantity_size) {
|
foreach ($this->items_quantity_size as $key => $quantity_size) {
|
||||||
$messages['items.' . $key . '.quantity.max'] = trans('validation.size', ['attribute' => Str::lower(trans('invoices.quantity')), 'size' => $quantity_size]);
|
$messages['items.' . $key . '.quantity.digits_between'] = trans('validation.digits_between', ['attribute' => Str::lower(trans('invoices.quantity')), 'min' => 1, 'max' => $quantity_size]);
|
||||||
$messages['items.' . $key . '.quantity.gt'] = trans('validation.gt.numeric', ['attribute' => Str::lower(trans('invoices.quantity')), 'value' => 0]);
|
$messages['items.' . $key . '.quantity.gt'] = trans('validation.gt.numeric', ['attribute' => Str::lower(trans('invoices.quantity')), 'value' => 0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -239,7 +239,7 @@ return [
|
|||||||
/**
|
/**
|
||||||
* Use the more-than-experimental HTML5 Lib parser
|
* Use the more-than-experimental HTML5 Lib parser
|
||||||
*/
|
*/
|
||||||
"enable_html5_parser" => true,
|
"enable_html5_parser" => false,
|
||||||
],
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user