fix: accounts list

This commit is contained in:
a.bouhuolia
2021-01-23 18:44:24 +02:00
parent 3f2387b875
commit b7913683c4
5 changed files with 13 additions and 22 deletions

View File

@@ -9,10 +9,9 @@ const Schema = Yup.object().shape({
.max(DATATYPES_LENGTH.STRING)
.label(formatMessage({ id: 'account_name_' })),
code: Yup.string().nullable().min(3).max(6),
account_type_id: Yup.number()
.nullable()
account_type: Yup.string()
.required()
.label(formatMessage({ id: 'account_type_id' })),
.label(formatMessage({ id: 'account_type' })),
description: Yup.string().min(3).max(DATATYPES_LENGTH.TEXT).nullable().trim(),
parent_account_id: Yup.number().nullable(),
});