From f5eb2fef2cafff8bf2290420a3dce4616f7b17af Mon Sep 17 00:00:00 2001 From: Yury Saukou Date: Fri, 30 Oct 2026 13:52:27 +0300 Subject: [PATCH] UIOR-1585 Do not show metadata fields in "Version history" for PO and PO Lines --- CHANGELOG.md | 1 + src/common/constants/constants.js | 9 ++++++++- src/components/POLine/utils.js | 4 ---- src/components/PurchaseOrder/util.js | 4 ---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c223ef9fd..10bb4fee1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ * Multi-year prepayments fixes and improvements. Refs UIOR-1572. * Integrate the Connected Tasks/Jobs plugin with Purchase Order and PO Line detail views. Refs UIOR-1578. * Set initial sorting column for "Related invoice lines" MCL. Refs UIOR-1581. +* Do not show metadata fields in "Version history" for PO and PO Lines. Refs UIOR-1585. ## [9.0.5](https://github.com/folio-org/ui-orders/tree/v9.0.5) (2026-07-20) [Full Changelog](https://github.com/folio-org/ui-orders/compare/v9.0.4...v9.0.5) diff --git a/src/common/constants/constants.js b/src/common/constants/constants.js index 37da556b0..40469f87f 100644 --- a/src/common/constants/constants.js +++ b/src/common/constants/constants.js @@ -80,7 +80,14 @@ 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 = [ + 'metadata.createdByUserId', + 'metadata.createdDate', + 'metadata.updatedByUserId', + 'metadata.updatedDate', + 'nextPolNumber', + 'searchLocationIds', +]; export const CENTRAL_ORDERING_DEFAULT_RECEIVING_SEARCH = { activeAffiliationOnly: 'Active affiliation only', diff --git a/src/components/POLine/utils.js b/src/components/POLine/utils.js index b30d4f7f4..cc312ab5e 100644 --- a/src/components/POLine/utils.js +++ b/src/components/POLine/utils.js @@ -125,10 +125,6 @@ export const getPoLineFieldsLabelMap = ({ 'acquisitionMethod': 'ui-orders.poLine.acquisitionMethod', 'automaticExport': 'ui-orders.poLine.automaticExport', 'orderFormat': 'ui-orders.poLine.orderFormat', - 'metadata.createdByUserId': 'ui-orders.orderDetails.createdBy', - 'metadata.createdDate': 'ui-orders.poLine.createdOn', - 'metadata.updatedByUserId': 'ui-orders.versionHistory.updatedByUserId', - 'metadata.updatedDate': 'ui-orders.orderLineList.updatedDate', 'receiptDate': 'ui-orders.poLine.receiptDate', 'receiptStatus': 'ui-orders.poLine.receiptStatus', 'paymentStatus': 'ui-orders.poLine.paymentStatus', diff --git a/src/components/PurchaseOrder/util.js b/src/components/PurchaseOrder/util.js index c50d2864d..daf75b6aa 100644 --- a/src/components/PurchaseOrder/util.js +++ b/src/components/PurchaseOrder/util.js @@ -88,10 +88,6 @@ export const getPoFieldsLabelMap = () => { 'shipTo': 'ui-orders.orderDetails.shipTo', 'manualPo': 'ui-orders.orderDetails.manualPO', 'reEncumber': 'ui-orders.orderDetails.reEncumber', - 'metadata.createdByUserId': 'ui-orders.orderDetails.createdBy', - 'metadata.createdDate': 'ui-orders.orderDetails.createdOn', - 'metadata.updatedByUserId': 'ui-orders.versionHistory.updatedByUserId', - 'metadata.updatedDate': 'ui-orders.order.lastUpdated', 'dateOrdered': 'ui-orders.orderDetails.dateOpened', 'fiscalYearId': 'ui-orders.orderDetails.yearOpened', 'openedById': 'ui-orders.orderDetails.openedBy',