mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix: AR aging summary report.
This commit is contained in:
@@ -12,17 +12,16 @@ import { FormattedMessage as T } from 'react-intl';
|
||||
import classNames from 'classnames';
|
||||
import { CustomersMultiSelect, Row, Col, FieldHint } from 'components';
|
||||
import { momentFormatter } from 'utils';
|
||||
// import withCustomers from 'containers/Customers/withCustomers';
|
||||
|
||||
import { compose } from 'redux';
|
||||
import { useARAgingSummaryContext } from './ARAgingSummaryProvider';
|
||||
|
||||
/**
|
||||
* AR Aging Summary - Drawer Header - General Fields.
|
||||
*/
|
||||
function ARAgingSummaryHeaderGeneral({
|
||||
// #withCustomers
|
||||
customers,
|
||||
}) {
|
||||
export default function ARAgingSummaryHeaderGeneral() {
|
||||
// AR Aging summary context.
|
||||
const { customers } = useARAgingSummaryContext();
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Row>
|
||||
@@ -53,7 +52,7 @@ function ARAgingSummaryHeaderGeneral({
|
||||
|
||||
<Row>
|
||||
<Col xs={5}>
|
||||
<FastField name={'agingBeforeDays'}>
|
||||
<FastField name={'agingDaysBefore'}>
|
||||
{({ field, meta: { error, touched } }) => (
|
||||
<FormGroup
|
||||
label={<T id={'aging_before_days'} />}
|
||||
@@ -104,9 +103,4 @@ function ARAgingSummaryHeaderGeneral({
|
||||
</Row>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
export default compose(
|
||||
// withCustomers(({ customers }) => ({
|
||||
// customers,
|
||||
// })),
|
||||
)(ARAgingSummaryHeaderGeneral);
|
||||
}
|
||||
Reference in New Issue
Block a user