mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
fix(form footer):missing.
This commit is contained in:
@@ -13,7 +13,9 @@ export function PaymentReceiveFormFootetLeft() {
|
||||
>
|
||||
<FEditableText
|
||||
name={'statement'}
|
||||
placeholder={'Thanks for your business and have a great day!'}
|
||||
placeholder={
|
||||
<T id={'thanks_for_your_business_and_have_a_great_day'} />
|
||||
}
|
||||
/>
|
||||
</TermsConditsFormGroup>
|
||||
</React.Fragment>
|
||||
@@ -31,4 +33,3 @@ const TermsConditsFormGroup = styled(FFormGroup)`
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import moment from 'moment';
|
||||
import intl from 'react-intl-universal';
|
||||
import { omit, pick, first } from 'lodash';
|
||||
import { omit, pick, first, sumBy } from 'lodash';
|
||||
import { useFormikContext } from 'formik';
|
||||
import { Intent } from '@blueprintjs/core';
|
||||
import { AppToaster } from 'components';
|
||||
@@ -226,7 +226,10 @@ export const usePaymentReceiveTotals = () => {
|
||||
} = useFormikContext();
|
||||
|
||||
// Retrieves the invoice entries total.
|
||||
const total = React.useMemo(() => getEntriesTotal(entries), [entries]);
|
||||
const total = React.useMemo(
|
||||
() => sumBy(entries, 'payment_amount'),
|
||||
[entries],
|
||||
);
|
||||
|
||||
// Retrieves the formatted total money.
|
||||
const formattedTotal = React.useMemo(
|
||||
|
||||
Reference in New Issue
Block a user