fix: bill schema

This commit is contained in:
elforjani3
2020-12-20 16:48:08 +02:00
parent 8085ec1a41
commit ab8d2dd1f9
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ const defaultBill = {
index: 0,
item_id: '',
rate: '',
discount: '',
discount: 0,
quantity: 1,
description: '',
};

View File

@@ -22,7 +22,7 @@ const BillFormSchema = Yup.object().shape({
.min(1)
.max(DATATYPES_LENGTH.TEXT)
.label(formatMessage({ id: 'note' })),
open: Yup.boolean().required(),
open: Yup.boolean(),
entries: Yup.array().of(
Yup.object().shape({
quantity: Yup.number()