feat(vendor): add vendor opening balance dialog.

This commit is contained in:
elforjani13
2022-03-09 20:59:19 +02:00
parent c5e360ffa2
commit 37f8662cc5
16 changed files with 543 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ import moment from 'moment';
import intl from 'react-intl-universal';
import { Formik } from 'formik';
import { Intent } from '@blueprintjs/core';
import { defaultTo } from 'lodash';
import { AppToaster } from 'components';
import { CreateCustomerOpeningBalanceFormSchema } from './CustomerOpeningBalanceForm.schema';
@@ -35,6 +36,7 @@ function CustomerOpeningBalanceForm({
const initialValues = {
...defaultInitialValues,
...customer,
opening_balance: defaultTo(customer.opening_balance, ''),
};
// Handles the form submit.