mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
fix: bill schema
This commit is contained in:
@@ -31,7 +31,7 @@ const defaultBill = {
|
|||||||
index: 0,
|
index: 0,
|
||||||
item_id: '',
|
item_id: '',
|
||||||
rate: '',
|
rate: '',
|
||||||
discount: '',
|
discount: 0,
|
||||||
quantity: 1,
|
quantity: 1,
|
||||||
description: '',
|
description: '',
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ const BillFormSchema = Yup.object().shape({
|
|||||||
.min(1)
|
.min(1)
|
||||||
.max(DATATYPES_LENGTH.TEXT)
|
.max(DATATYPES_LENGTH.TEXT)
|
||||||
.label(formatMessage({ id: 'note' })),
|
.label(formatMessage({ id: 'note' })),
|
||||||
open: Yup.boolean().required(),
|
open: Yup.boolean(),
|
||||||
entries: Yup.array().of(
|
entries: Yup.array().of(
|
||||||
Yup.object().shape({
|
Yup.object().shape({
|
||||||
quantity: Yup.number()
|
quantity: Yup.number()
|
||||||
|
|||||||
Reference in New Issue
Block a user