mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
fix: opening quantity must be integer.
This commit is contained in:
@@ -70,6 +70,7 @@ const Schema = Yup.object().shape({
|
|||||||
otherwise: Yup.number().nullable(),
|
otherwise: Yup.number().nullable(),
|
||||||
}),
|
}),
|
||||||
opening_quantity: Yup.number()
|
opening_quantity: Yup.number()
|
||||||
|
.integer()
|
||||||
.min(1)
|
.min(1)
|
||||||
.nullable()
|
.nullable()
|
||||||
.label(formatMessage({ id: 'opening_quantity_' })),
|
.label(formatMessage({ id: 'opening_quantity_' })),
|
||||||
|
|||||||
Reference in New Issue
Block a user