From 771e85833ef70f7e5e556ae7ab29d62730126e3d Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Thu, 25 Mar 2021 19:34:50 +0200 Subject: [PATCH] fix(vendor) inital value. --- .../containers/Drawers/PaperTemplate/PaperTemplateTable.js | 2 +- client/src/containers/Vendors/VendorForm/VendorForm.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/containers/Drawers/PaperTemplate/PaperTemplateTable.js b/client/src/containers/Drawers/PaperTemplate/PaperTemplateTable.js index a73e60760..6c5695924 100644 --- a/client/src/containers/Drawers/PaperTemplate/PaperTemplateTable.js +++ b/client/src/containers/Drawers/PaperTemplate/PaperTemplateTable.js @@ -16,7 +16,7 @@ export default function DrawerTemplateTable({ tableData, currencyCode }) { accessor: 'rate', accessor: ({ rate }) => , disableSortBy: true, - width: 50, + width: 80, }, { Header: formatMessage({ id: 'Qty' }), diff --git a/client/src/containers/Vendors/VendorForm/VendorForm.js b/client/src/containers/Vendors/VendorForm/VendorForm.js index a89bf6702..08cb01299 100644 --- a/client/src/containers/Vendors/VendorForm/VendorForm.js +++ b/client/src/containers/Vendors/VendorForm/VendorForm.js @@ -94,8 +94,8 @@ function VendorForm({ const initialValues = useMemo( () => ({ ...defaultInitialValues, - currency_code: baseCurrency, - ...transformToForm(contactDuplicate || vendor, defaultInitialValues), + ...transformToForm(vendor, defaultInitialValues), + ...transformToForm(contactDuplicate, defaultInitialValues), }), [vendor, contactDuplicate, baseCurrency], );