Skip to content

Commit

Permalink
UIOR-1362: Provide system only POL changed fields for POL version his…
Browse files Browse the repository at this point in the history
…tory
  • Loading branch information
alisher-epam committed Nov 29, 2024
1 parent 4d5cccc commit f73d7e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
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

0 comments on commit f73d7e1

Please sign in to comment.