feat(OwnerContributionForm): add exchange rate.

This commit is contained in:
elforjani13
2022-02-27 14:38:47 +02:00
parent 31a5ee6dda
commit cb9c7fcdb6
2 changed files with 10 additions and 9 deletions

View File

@@ -68,6 +68,7 @@ function MoneyInForm({
transaction_number: transactionNo,
}),
cashflow_account_id: accountId,
exchange_rate: 1,
};
// Handles the form submit.

View File

@@ -186,19 +186,19 @@ function OwnerContributionFormFields({
</Field>
{/*------------ exchange rate -----------*/}
<If
{/* <If
condition={isForeignCurrency(
account?.currency_code,
values?.currency_code,
)}
>
<ExchangeRateInputGroup
fromCurrency={values?.currency_code}
toCurrency={account?.currency_code}
name={'exchange_rate'}
formGroupProps={{ label: ' ', inline: false }}
/>
</If>
> */}
<ExchangeRateInputGroup
fromCurrency={values?.currency_code}
toCurrency={account?.currency_code}
name={'exchange_rate'}
formGroupProps={{ label: ' ', inline: false }}
/>
{/* </If> */}
<Row>
<Col xs={5}>