mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat(badDebt): fix currency code.
This commit is contained in:
@@ -37,7 +37,6 @@ function BadDebtForm({
|
||||
// Initial form values
|
||||
const initialValues = {
|
||||
...defaultInitialValues,
|
||||
currency_code: base_currency,
|
||||
amount: invoice.due_amount,
|
||||
};
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import { useBadDebtContext } from './BadDebtFormProvider';
|
||||
function BadDebtFormFields() {
|
||||
const amountfieldRef = useAutofocus();
|
||||
|
||||
const { accounts } = useBadDebtContext();
|
||||
const { accounts ,invoice } = useBadDebtContext();
|
||||
|
||||
return (
|
||||
<div className={Classes.DIALOG_BODY}>
|
||||
@@ -55,7 +55,7 @@ function BadDebtFormFields() {
|
||||
helperText={<ErrorMessage name="amount" />}
|
||||
>
|
||||
<ControlGroup>
|
||||
<InputPrependText text={values.currency_code} />
|
||||
<InputPrependText text={invoice.currency_code} />
|
||||
|
||||
<MoneyInputGroup
|
||||
value={value}
|
||||
|
||||
Reference in New Issue
Block a user