[Bug 23023] New: System adds item in subscription but not in record when duplicate barcode is used
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23023 Bug ID: 23023 Summary: System adds item in subscription but not in record when duplicate barcode is used Change sponsored?: --- Product: Koha Version: 18.11 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Serials Assignee: koha-bugs@lists.koha-community.org Reporter: b.pastern4k@gmail.com QA Contact: testopia@bugs.koha-community.org CC: colin.campbell@ptfs-europe.com Target Milestone: --- When i try to receive an item in a subscription and write a duplicate barcode, system at first gives me a warning about a duplicate barcode. If i try this again, it changes item status to arrived, new item in subscription is created with "Expected" status, but in bibliorecord no item is created. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23023 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|System adds item in |Issue for subscription, but |subscription but not in |no item is added when |record when duplicate |duplicate barcode is used |barcode is used | CC| |katrin.fischer@bsz-bw.de -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23023 Adolfo Rodríguez Taboada <adolfo.rodriguez@xercode.es> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |adolfo.rodriguez@xercode.es |ity.org | Status|NEW |Needs Signoff -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23023 --- Comment #1 from Adolfo Rodríguez Taboada <adolfo.rodriguez@xercode.es> --- Created attachment 212988 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212988&action=edit Bug 23023: Do not receive serial issues if their items cannot be created When receiving a serial issue that creates an item (subscription with "Create an item record when receiving this serial"), the issue status is changed before the item is created. If the item cannot be created because its barcode already exists, the error is shown but the issue remains received: the next issue is generated, the issue is added to the received list and no item is linked to it. The error page also shows the issue as expected, which does not match what has been saved. This patch saves the issues and their items in a single transaction, which is rolled back if any item fails, so nothing is saved and the page shows the real state. Steps to follow: 1. Create a record with an item with barcode "DUP". 2. Create a subscription for this record with "Create an item record when receiving this serial" checked. 3. Receive the first issue: set its status to "Arrived" and, in the item form, set barcode "DUP". Save. 4. Note the error "Barcode not unique for serialseq ...". 5. Go to the serial collection: the issue is "Arrived", the next issue has been generated and there is no linked item. 6. Apply the patch and restart services. 7. Delete the issues of the subscription and generate the first issue again (or create a new subscription) and repeat 3. 8. Note the error, now with "No changes have been saved.": the issue is still "Expected" and the next issue has not been generated. 9. Save again with a barcode that does not exist: the issue is received, the next one is generated and the item is linked to it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23023 Adolfo Rodríguez Taboada <adolfo.rodriguez@xercode.es> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=42699, | |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=31268 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org