Summary: | Cannot close baskets when all lines have been cancelled | ||
---|---|---|---|
Product: | Koha | Reporter: | Ray Delahunty <r.delahunty> |
Component: | Acquisitions | Assignee: | Katrin Fischer <katrin.fischer> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | aleisha, jonathan.druart, lucas, martin.renvoize, victor |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
20.11.00, 20.05.06, 19.11.12
|
|
Circulation function: | |||
Attachments: |
Bug 26190: Allow to close a basket with only cancelled order lines
Bug 26190: Allow to close a basket with only cancelled order lines Bug 26190: Allow to close a basket with only cancelled order lines |
Description
Ray Delahunty
2020-08-11 09:19:35 UTC
Created attachment 111946 [details] [review] Bug 26190: Allow to close a basket with only cancelled order lines At the moment there are several cases, when closing a basket is not possible: - when there are no order lines in it - when there are order lines with uncertain prices - when the basket is marked as a standing order The first case wasn't checked correctly as only pending/received orders would be counted, but not cancelled orders. To test: - Create a basket - Create an order line - Verify the "close this basket" button shows - Cancel the order line - the button disappears - Apply the patch - Verify the button appears and works now - Create another basket - make sure you cannot close it without order lines - Create an order line with uncertain price checked - you cannot close it - Resolve the uncertain price - you can now close the basket. Created attachment 111990 [details] [review] Bug 26190: Allow to close a basket with only cancelled order lines At the moment there are several cases, when closing a basket is not possible: - when there are no order lines in it - when there are order lines with uncertain prices - when the basket is marked as a standing order The first case wasn't checked correctly as only pending/received orders would be counted, but not cancelled orders. To test: - Create a basket - Create an order line - Verify the "close this basket" button shows - Cancel the order line - the button disappears - Apply the patch - Verify the button appears and works now - Create another basket - make sure you cannot close it without order lines - Create an order line with uncertain price checked - you cannot close it - Resolve the uncertain price - you can now close the basket. Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> Thx, Severine! Created attachment 112107 [details] [review] Bug 26190: Allow to close a basket with only cancelled order lines At the moment there are several cases, when closing a basket is not possible: - when there are no order lines in it - when there are order lines with uncertain prices - when the basket is marked as a standing order The first case wasn't checked correctly as only pending/received orders would be counted, but not cancelled orders. To test: - Create a basket - Create an order line - Verify the "close this basket" button shows - Cancel the order line - the button disappears - Apply the patch - Verify the button appears and works now - Create another basket - make sure you cannot close it without order lines - Create an order line with uncertain price checked - you cannot close it - Resolve the uncertain price - you can now close the basket. Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Another nice little improvement here, works well.. Thanks for picking it up Katrin Passing QA Parenthesis would have helped the readability, but it works as it. Pushed to master for 20.11, thanks to everybody involved! backported to 20.05.x for 20.05.06 backported to 19.11.x for 19.11.12 Not backported to oldoldstable (19.05.x). Feel free to ask if it's needed. |