diff --git a/CHANGELOG.md b/CHANGELOG.md index c18b9515..99b3d392 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Display and edit claiming active and interval fields in receiving title. Refs UIREC-288. * Optimize pieces query to improve performance. Refs UIREC-298. * Display claim actions for Piece. Refs UIREC-291. +* Set claiming workflow statuses for single Piece. Refs UIREC-292. ## [4.0.0](https://github.com/folio-org/ui-receiving/tree/v4.0.0) (2023-10-12) [Full Changelog](https://github.com/folio-org/ui-receiving/compare/v3.0.0...v4.0.0) diff --git a/src/TitleDetails/AddPieceModal/AddPieceModal.js b/src/TitleDetails/AddPieceModal/AddPieceModal.js index 6d46af21..a58d2f21 100644 --- a/src/TitleDetails/AddPieceModal/AddPieceModal.js +++ b/src/TitleDetails/AddPieceModal/AddPieceModal.js @@ -138,6 +138,11 @@ const AddPieceModal = ({ handleSubmit(); }, [change, handleSubmit]); + const onStatusChange = useCallback((status) => { + change('receivingStatus', status); + onSave(); + }, [change, onSave]); + const start = ( ) : null, expect: ( - ), sendClaim: ( - ), + unReceive: ( + + ), unReceivable: ( -