mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
fix :default currency in make journal form.
This commit is contained in:
@@ -26,7 +26,6 @@ import {
|
|||||||
|
|
||||||
import withDialogActions from 'containers/Dialog/withDialogActions';
|
import withDialogActions from 'containers/Dialog/withDialogActions';
|
||||||
import withCurrencies from 'containers/Currencies/withCurrencies';
|
import withCurrencies from 'containers/Currencies/withCurrencies';
|
||||||
import withSettings from 'containers/Settings/withSettings';
|
|
||||||
|
|
||||||
import { compose } from 'utils';
|
import { compose } from 'utils';
|
||||||
|
|
||||||
@@ -41,9 +40,6 @@ function MakeJournalEntriesHeader({
|
|||||||
manualJournal,
|
manualJournal,
|
||||||
onJournalNumberChanged,
|
onJournalNumberChanged,
|
||||||
|
|
||||||
// #withSettings
|
|
||||||
baseCurrency,
|
|
||||||
|
|
||||||
// #withCurrencies
|
// #withCurrencies
|
||||||
currenciesList,
|
currenciesList,
|
||||||
|
|
||||||
@@ -225,7 +221,7 @@ function MakeJournalEntriesHeader({
|
|||||||
currenciesList={currenciesList}
|
currenciesList={currenciesList}
|
||||||
selectedCurrencyCode={values.currency_code}
|
selectedCurrencyCode={values.currency_code}
|
||||||
onCurrencySelected={onItemsSelect('currency_code')}
|
onCurrencySelected={onItemsSelect('currency_code')}
|
||||||
defaultSelectText={baseCurrency}
|
defaultSelectText={values.currency_code}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
</Col>
|
</Col>
|
||||||
@@ -236,9 +232,6 @@ function MakeJournalEntriesHeader({
|
|||||||
|
|
||||||
export default compose(
|
export default compose(
|
||||||
withDialogActions,
|
withDialogActions,
|
||||||
withSettings(({ organizationSettings }) => ({
|
|
||||||
baseCurrency: organizationSettings?.baseCurrency,
|
|
||||||
})),
|
|
||||||
withCurrencies(({ currenciesList }) => ({
|
withCurrencies(({ currenciesList }) => ({
|
||||||
currenciesList,
|
currenciesList,
|
||||||
})),
|
})),
|
||||||
|
|||||||
Reference in New Issue
Block a user