mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
fix(vendor) inital value.
This commit is contained in:
@@ -16,7 +16,7 @@ export default function DrawerTemplateTable({ tableData, currencyCode }) {
|
|||||||
accessor: 'rate',
|
accessor: 'rate',
|
||||||
accessor: ({ rate }) => <Money amount={rate} currency={currencyCode} />,
|
accessor: ({ rate }) => <Money amount={rate} currency={currencyCode} />,
|
||||||
disableSortBy: true,
|
disableSortBy: true,
|
||||||
width: 50,
|
width: 80,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Header: formatMessage({ id: 'Qty' }),
|
Header: formatMessage({ id: 'Qty' }),
|
||||||
|
|||||||
@@ -94,8 +94,8 @@ function VendorForm({
|
|||||||
const initialValues = useMemo(
|
const initialValues = useMemo(
|
||||||
() => ({
|
() => ({
|
||||||
...defaultInitialValues,
|
...defaultInitialValues,
|
||||||
currency_code: baseCurrency,
|
...transformToForm(vendor, defaultInitialValues),
|
||||||
...transformToForm(contactDuplicate || vendor, defaultInitialValues),
|
...transformToForm(contactDuplicate, defaultInitialValues),
|
||||||
}),
|
}),
|
||||||
[vendor, contactDuplicate, baseCurrency],
|
[vendor, contactDuplicate, baseCurrency],
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user