fix: opening quantity must be integer.

This commit is contained in:
elforjani3
2020-12-27 12:24:27 +02:00
parent 074ed0064f
commit b7af7e3b2e

View File

@@ -70,6 +70,7 @@ const Schema = Yup.object().shape({
otherwise: Yup.number().nullable(),
}),
opening_quantity: Yup.number()
.integer()
.min(1)
.nullable()
.label(formatMessage({ id: 'opening_quantity_' })),