mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
fix: invoice deliver
This commit is contained in:
@@ -44,7 +44,7 @@ const defaultInvoice = {
|
|||||||
index: 0,
|
index: 0,
|
||||||
item_id: '',
|
item_id: '',
|
||||||
rate: '',
|
rate: '',
|
||||||
discount: '',
|
discount: 0,
|
||||||
quantity: 1,
|
quantity: 1,
|
||||||
description: '',
|
description: '',
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const Schema = Yup.object().shape({
|
|||||||
.max(DATATYPES_LENGTH.STRING)
|
.max(DATATYPES_LENGTH.STRING)
|
||||||
.label(formatMessage({ id: 'invoice_no_' })),
|
.label(formatMessage({ id: 'invoice_no_' })),
|
||||||
reference_no: Yup.string().min(1).max(DATATYPES_LENGTH.STRING),
|
reference_no: Yup.string().min(1).max(DATATYPES_LENGTH.STRING),
|
||||||
delivered: Yup.boolean().required(),
|
delivered: Yup.boolean(),
|
||||||
invoice_message: Yup.string()
|
invoice_message: Yup.string()
|
||||||
.trim()
|
.trim()
|
||||||
.min(1)
|
.min(1)
|
||||||
@@ -43,7 +43,7 @@ const Schema = Yup.object().shape({
|
|||||||
is: (quantity, rate) => !isBlank(quantity) && !isBlank(rate),
|
is: (quantity, rate) => !isBlank(quantity) && !isBlank(rate),
|
||||||
then: Yup.number().required(),
|
then: Yup.number().required(),
|
||||||
}),
|
}),
|
||||||
discount: Yup.number().nullable().min(0).max(DATATYPES_LENGTH.INT_10),
|
discount: Yup.number().nullable().min(0).max(100),
|
||||||
description: Yup.string().nullable().max(DATATYPES_LENGTH.TEXT),
|
description: Yup.string().nullable().max(DATATYPES_LENGTH.TEXT),
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user