mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
feat(vendor): add vendor opening balance dialog.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user