inveniosoftware / react-invenio-app-ils

Single Page App built with React for InvenioILS.
https://react-invenio-app-ils.readthedocs.io
MIT License
5 stars 19 forks source link

backoffice: patron: checkout: Fix for Search/Scan Barcode and auto checkout loan if one #580

Closed sakshamarora1 closed 4 months ago

sakshamarora1 commented 7 months ago

:heart: Thank you for your contribution!

Description

In the checkout tab, the barcode scanner didn't auto-checkout a book on being scanned for a patron due to onSearchHandler not passing the patronPid argument to the executeSearch function. This PR change will use the patronDetails available in this.props and will fill in the patronPid whenever the parameter is undefined

Fixes: https://github.com/CERNDocumentServer/cds-ils/issues/546

Note: The barcode scanner does the following things on a scan - -> Type in the barcode -> Press the return key

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

https://github.com/inveniosoftware/react-invenio-app-ils/assets/50872172/ee037db4-131a-4b34-8cfb-bae7fe6af91d