mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix(server): tax rate could be zero.
This commit is contained in:
@@ -8,7 +8,7 @@ const getSchema = () =>
|
|||||||
active: Yup.boolean().optional().label('Active'),
|
active: Yup.boolean().optional().label('Active'),
|
||||||
describtion: Yup.string().optional().label('Description'),
|
describtion: Yup.string().optional().label('Description'),
|
||||||
rate: Yup.number()
|
rate: Yup.number()
|
||||||
.min(0.01, 'Enter a rate percentage of at least 0.01%')
|
.min(0, 'Enter a rate percentage of at least 0%')
|
||||||
.max(100, 'Enter a rate percentage of at most 100%')
|
.max(100, 'Enter a rate percentage of at most 100%')
|
||||||
.required()
|
.required()
|
||||||
.label('Rate'),
|
.label('Rate'),
|
||||||
|
|||||||
Reference in New Issue
Block a user