mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat(OwnerContributionForm): add exchange rate.
This commit is contained in:
@@ -68,6 +68,7 @@ function MoneyInForm({
|
||||
transaction_number: transactionNo,
|
||||
}),
|
||||
cashflow_account_id: accountId,
|
||||
exchange_rate: 1,
|
||||
};
|
||||
|
||||
// Handles the form submit.
|
||||
|
||||
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user