Skip to content

Commit

Permalink
add donor organizations list
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Dec 20, 2023
1 parent 9d7c4bf commit 04890c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/POLine/POLineView.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import {
} from '@folio/stripes/smart-components';

import {
DonorsListContainer,
FundDistributionView,
handleKeyCommand,
ORDER_FORMATS,
Expand Down Expand Up @@ -396,6 +397,12 @@ const POLineView = ({
/>
</Accordion>
)}
<Accordion
label={<FormattedMessage id="ui-orders.line.accordion.donorInformation" />}
id={ACCORDION_ID.donorsInformation}
>
<DonorsListContainer donorOrganizationIds={line.donorOrganizationIds} />
</Accordion>
<Accordion
label={<FormattedMessage id="ui-orders.line.accordion.vendor" />}
id="Vendor"
Expand Down
1 change: 1 addition & 0 deletions src/components/POLine/POLineView.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jest.mock('@folio/stripes-acq-components', () => ({
protectDelete: false,
},
}),
DonorsListContainer: jest.fn().mockReturnValue('DonorsListContainer'),
FundDistributionView: jest.fn(() => 'FundDistributionView'),
}));
jest.mock('@folio/stripes/smart-components', () => ({
Expand Down

0 comments on commit 04890c9

Please sign in to comment.