feature(expense)/ cost landed checkbox.

This commit is contained in:
elforjani3
2021-07-21 23:49:00 +02:00
parent 2b5d00ed60
commit 2a55e09df8
3 changed files with 42 additions and 4 deletions

View File

@@ -8,9 +8,7 @@ const Schema = Yup.object().shape({
payment_account_id: Yup.number()
.required()
.label(intl.get('payment_account_')),
payment_date: Yup.date()
.required()
.label(intl.get('payment_date_')),
payment_date: Yup.date().required().label(intl.get('payment_date_')),
reference_no: Yup.string().min(1).max(DATATYPES_LENGTH.STRING).nullable(),
currency_code: Yup.string()
.nullable()
@@ -33,6 +31,7 @@ const Schema = Yup.object().shape({
is: (amount) => !isBlank(amount),
then: Yup.number().required(),
}),
landed_cost: Yup.boolean(),
description: Yup.string().max(DATATYPES_LENGTH.TEXT).nullable(),
}),
),