https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38175
Thibaud Guillot (thibaud_g) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172770|0 |1 is obsolete| | --- Comment #3 from Thibaud Guillot (thibaud_g) <[email protected]> --- Created attachment 172772 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172772&action=edit Bug 38175: Improve Bookings feature with status With the integration of the new status column for bookings, it would be preferable to keep the booking in database and simply change its status to 'cancel' when you cancel it via the action button or the timeline. So I've added partial updating via the API with a new PATCH method to partially edit a booking. It is currently active for status changes. Graphically, this translates into the disappearance of the action buttons if the booking has already been canceled, although it remains visible in the table and timeline (the style is a proposal for the moment, intended simply to graphically differentiate a canceled booking from others). I've also added a filter to the filter_by_active method to exclude cancelled bookings. Test plan: 1) Create a booking on a bookable item 2) Cancel it and see that it's simply deleted 3) Apply the patch and run “restart_all”. 4) Repeat the same cancel operation and see that it's still there, albeit with a different appearance. 5) Try the filters in the table Sponsored by: BibLibre -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
