Merge pull request #883 from ubavic/fix/bill_count_validation_error_missing
fix: add validation errors to the update wizard
This commit is contained in:
commit
82f1eaa87c
2 changed files with 19 additions and 4 deletions
|
|
@ -76,7 +76,7 @@ const Wizard = ({ machine, cashoutSettings, locale, onClose, save, error }) => {
|
|||
{
|
||||
type: 'cashbox',
|
||||
schema: Yup.object().shape({
|
||||
wasCashboxEmptied: Yup.string().required()
|
||||
wasCashboxEmptied: Yup.string().required('Select one option.')
|
||||
}),
|
||||
cashoutRequired: false
|
||||
},
|
||||
|
|
@ -84,6 +84,7 @@ const Wizard = ({ machine, cashoutSettings, locale, onClose, save, error }) => {
|
|||
type: 'cassette 1',
|
||||
schema: Yup.object().shape({
|
||||
cassette1Count: Yup.number()
|
||||
.label('Bill count')
|
||||
.required()
|
||||
.min(0)
|
||||
.max(CASHBOX_DEFAULT_CAPACITY)
|
||||
|
|
@ -94,6 +95,7 @@ const Wizard = ({ machine, cashoutSettings, locale, onClose, save, error }) => {
|
|||
type: 'cassette 2',
|
||||
schema: Yup.object().shape({
|
||||
cassette2Count: Yup.number()
|
||||
.label('Bill count')
|
||||
.required()
|
||||
.min(0)
|
||||
.max(CASHBOX_DEFAULT_CAPACITY)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue