From 8a9c9cf4983b9b4d5c4e2e0ddddec69d6431a6c1 Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Mon, 22 Mar 2021 19:12:17 +0200 Subject: [PATCH] fix(accountant) : accountant schema. --- .../containers/Preferences/Accountant/Accountant.schema.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/containers/Preferences/Accountant/Accountant.schema.js b/client/src/containers/Preferences/Accountant/Accountant.schema.js index 9e8cb63e8..0c029efa5 100644 --- a/client/src/containers/Preferences/Accountant/Accountant.schema.js +++ b/client/src/containers/Preferences/Accountant/Accountant.schema.js @@ -2,11 +2,11 @@ import * as Yup from 'yup'; const Schema = Yup.object().shape({ accounting_basis: Yup.string().required(), - account_code_required: Yup.boolean(), - account_code_unique: Yup.boolean(), + account_code_required: Yup.boolean().nullable(), + account_code_unique: Yup.boolean().nullable(), deposit_account: Yup.number().nullable(), withdrawal_account: Yup.number().nullable(), advance_deposit: Yup.number().nullable(), }); -export const AccountantSchema = Schema; \ No newline at end of file +export const AccountantSchema = Schema;