Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIOR-1362: Provide system only POL changed fields for POL version history #1677

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 7.1.0 (IN PROGRESS)

* Add "Donor (Deprecated)" label for PO line search by Donor filed. Refs UIOR-1348.
* Provide system only POL changed fields for POL version history. Refs UIOR-1362.

## [7.0.1](https://github.com/folio-org/ui-orders/tree/v7.0.1) (2024-11-14)
[Full Changelog](https://github.com/folio-org/ui-orders/compare/v7.0.0...v7.0.1)
Expand Down
4 changes: 3 additions & 1 deletion src/common/constants/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ export const UNOPEN_ORDER_ABANDONED_HOLDINGS_TYPES = {
export const FIELD_ARRAY_ITEM_IDENTIFIER_KEY = '__key__';
export const OKAPI_TENANT_HEADER = 'X-Okapi-Tenant';

export const HIDDEN_ORDER_FIELDS_FOR_VERSION_HISTORY = ['nextPolNumber', 'searchLocationIds'];
export const HIDDEN_ORDER_FIELDS_FOR_VERSION_HISTORY = ['nextPolNumber'];

export const CENTRAL_ORDERING_DEFAULT_RECEIVING_SEARCH = {
activeAffiliationOnly: 'Active affiliation only',
centralOnly: 'Central only',
centralDefault: 'Central default',
activeAffiliationDefault: 'Active affiliation default',
};

export const SYSTEM_UPDATED_FIELDS = ['searchLocationIds'];
2 changes: 2 additions & 0 deletions src/components/POLine/POLineVersionView/POLineVersionView.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
HIDDEN_ORDER_FIELDS_FOR_VERSION_HISTORY,
ORDERS_ROUTE,
ORDER_LINES_ROUTE,
SYSTEM_UPDATED_FIELDS,
} from '../../../common/constants';
import { useOrderLine } from '../../../common/hooks';
import {
Expand Down Expand Up @@ -133,6 +134,7 @@ const POLineVersionView = ({
labelsMap={getPoLineFieldsLabelMap(selectedVersion)}
versions={versions}
hiddenFields={HIDDEN_ORDER_FIELDS_FOR_VERSION_HISTORY}
systemUpdatedFields={SYSTEM_UPDATED_FIELDS}
/>
</VersionViewContextProvider>
);
Expand Down
Loading