Skip to content
Merged
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 @@ -62,6 +62,7 @@
* Display the actual estimated price on PO line edit screen with rollover adjustment. Refs UIOR-1502.
* Fix permission error for edit custom-fields. Refs UIOR-1513.
* Reflect changes of tenant addresses API. Refs UIOR-1508.
* Add scope to all EditCustomFieldsSettings and ViewCustomFieldsSettings. Refs UIOR-1516.

## [8.0.5](https://github.com/folio-org/ui-orders/tree/v8.0.5) (2025-06-30)
[Full Changelog](https://github.com/folio-org/ui-orders/compare/v8.0.4...v8.0.5)
Expand Down
2 changes: 2 additions & 0 deletions src/components/POLine/POLineForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ import {
ENTITY_TYPE_PO_LINE,
PO_LINE_CONFIG_NAME_PREFIX,
POL_FORM_FIELDS,
SCOPE_CUSTOM_FIELDS_MANAGE,
SUBMIT_ACTION_FIELD,
} from '../../common/constants';
import {
Expand Down Expand Up @@ -689,6 +690,7 @@ function POLineForm({
fieldComponent={Field}
finalFormCustomFieldsValues={customFieldsValues}
configNamePrefix={PO_LINE_CONFIG_NAME_PREFIX}
scope={SCOPE_CUSTOM_FIELDS_MANAGE}
/>
</IfFieldVisible>
</AccordionSet>
Expand Down
2 changes: 2 additions & 0 deletions src/components/POLine/POLineView.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ import {
REEXPORT_SOURCES,
ORDER_LINES_ROUTE,
ROUTING_LIST_ROUTE,
SCOPE_CUSTOM_FIELDS_MANAGE,
PO_LINE_CONFIG_NAME_PREFIX,
} from '../../common/constants';
import { useExportHistory } from '../../common/hooks';
Expand Down Expand Up @@ -589,6 +590,7 @@ const POLineView = ({
customFieldsValues={customFieldsValues}
entityType={ENTITY_TYPE_PO_LINE}
configNamePrefix={PO_LINE_CONFIG_NAME_PREFIX}
scope={SCOPE_CUSTOM_FIELDS_MANAGE}
/>
</IfVisible>
</AccordionSet>
Expand Down
2 changes: 2 additions & 0 deletions src/components/PurchaseOrder/PO.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
ORDERS_ROUTE,
PO_CONFIG_NAME_PREFIX,
REEXPORT_SOURCES,
SCOPE_CUSTOM_FIELDS_MANAGE,
WORKFLOW_STATUS,
} from '../../common/constants';
import { useHandleOrderUpdateError } from '../../common/hooks';
Expand Down Expand Up @@ -847,6 +848,7 @@
customFieldsValues={customFieldsValues}
entityType={ENTITY_TYPE_ORDER}
configNamePrefix={PO_CONFIG_NAME_PREFIX}
scope={SCOPE_CUSTOM_FIELDS_MANAGE}
/>
</IfVisible>

Expand Down Expand Up @@ -996,5 +998,5 @@
refreshList: PropTypes.func.isRequired,
stripes: PropTypes.object.isRequired,
};

Check failure on line 1001 in src/components/PurchaseOrder/PO.js

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

File has too many lines (1002). Maximum allowed is 1000
export default stripesConnect(PO);
2 changes: 2 additions & 0 deletions src/components/PurchaseOrder/POForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
ENTITY_TYPE_ORDER,
PO_CONFIG_NAME_PREFIX,
PO_FORM_FIELDS,
SCOPE_CUSTOM_FIELDS_MANAGE,
SUBMIT_ACTION_FIELD,
} from '../../common/constants';
import { useErrorAccordionStatus } from '../../common/hooks';
Expand Down Expand Up @@ -119,7 +120,7 @@
...(orderTemplate?.hiddenFields || {}),
}));
}
}, []);

Check warning on line 123 in src/components/PurchaseOrder/POForm.js

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

React Hook useEffect has missing dependencies: 'initialValues.template' and 'parentResources?.orderTemplates?.records'. Either include them or remove the dependency array

const callAPI = useCallback((_fieldName, values) => {
const { orderNumber: validator } = parentMutator;
Expand Down Expand Up @@ -458,6 +459,7 @@
fieldComponent={Field}
finalFormCustomFieldsValues={customFieldsValues}
configNamePrefix={PO_CONFIG_NAME_PREFIX}
scope={SCOPE_CUSTOM_FIELDS_MANAGE}
/>
</IfFieldVisible>
</AccordionSet>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import {
ENTITY_TYPE_PO_LINE,
PO_CONFIG_NAME_PREFIX,
PO_LINE_CONFIG_NAME_PREFIX,
SCOPE_CUSTOM_FIELDS_MANAGE,
} from '../../../common/constants';
import { isOngoing } from '../../../common/POFields';
import {
Expand Down Expand Up @@ -458,6 +459,7 @@ const OrderTemplateView = (props) => {
customFieldsValues={customFieldsValues}
entityType={ENTITY_TYPE_ORDER}
configNamePrefix={PO_CONFIG_NAME_PREFIX}
scope={SCOPE_CUSTOM_FIELDS_MANAGE}
/>

<ViewCustomFieldsRecord
Expand All @@ -466,6 +468,7 @@ const OrderTemplateView = (props) => {
customFieldsValues={customFieldsValues}
entityType={ENTITY_TYPE_PO_LINE}
configNamePrefix={PO_LINE_CONFIG_NAME_PREFIX}
scope={SCOPE_CUSTOM_FIELDS_MANAGE}
/>
</AccordionSet>
</Col>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import {
PO_CONFIG_NAME_PREFIX,
PO_FORM_FIELDS,
PO_LINE_CONFIG_NAME_PREFIX,
SCOPE_CUSTOM_FIELDS_MANAGE,
WORKFLOW_STATUS,
} from '../../../common/constants';
import {
Expand Down Expand Up @@ -469,6 +470,7 @@ const OrderTemplatesEditor = ({
displayWhenClosed={customPOFieldsVisibilityControl}
displayWhenOpen={customPOFieldsVisibilityControl}
configNamePrefix={PO_CONFIG_NAME_PREFIX}
scope={SCOPE_CUSTOM_FIELDS_MANAGE}
/>
<EditCustomFieldsRecord
accordionId={ORDER_TEMPLATES_ACCORDION.POL_CUSTOM_FIELDS}
Expand All @@ -480,6 +482,7 @@ const OrderTemplatesEditor = ({
displayWhenClosed={customPOLineFieldsVisibilityControl}
displayWhenOpen={customPOLineFieldsVisibilityControl}
configNamePrefix={PO_LINE_CONFIG_NAME_PREFIX}
scope={SCOPE_CUSTOM_FIELDS_MANAGE}
/>
</AccordionSet>
</Col>
Expand Down
Loading