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