https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41087
--- Comment #13 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 208017 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208017&action=edit Bug 41087: Add Roll back and Reprocess to the EDIFACT messages page Add Roll back and Reprocess buttons to Acquisitions > EDIFACT messages for received and error QUOTE and INVOICE messages. The buttons open a confirmation modal that first asks the server for the pre-flight result (a read-only rollback-check JSON operation), so the staff member sees why a message cannot be rolled back, or what will be undone, before confirming. An optional reason is kept with the resolved errors. Rolling back and reprocessing are POST operations (cud-rollback, cud-reprocess) protected by the CSRF token. Test plan: 1. Apply the patch and run restart_all 2. Process an EDIFACT INVOICE that produces errors (for example t/edi_testfiles/INVOICE.CEI) and open Acquisitions > EDIFACT messages 3. Click 'Roll back' on it: the modal lists what will be undone. Confirm with a reason 4. The message is now 'rolledback' and has an Import button 5. Process another invoice, close its Koha invoice and try to roll it back: the reason is shown and Confirm stays disabled 6. npx cypress run --spec t/cypress/integration/Acquisitions/EdifactRollback_spec.ts Co-Authored-By: Claude Sonnet 5.5 <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
