[Koha-bugs] [Bug 17172] New: Cancelling an order before basket is closed leaves aqorders.status set to 'ordered'.
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Aug 23 19:45:41 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17172
Bug ID: 17172
Summary: Cancelling an order before basket is closed leaves
aqorders.status set to 'ordered'.
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Acquisitions
Assignee: koha-bugs at lists.koha-community.org
Reporter: barton at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
Deleting an order before a basket is closed sets
aqorders.datecancellationprinted, but does *not* change aqorders.orderstatus,
which stays at 'new'.
When the basket is closed, aqorders.orderstatus is set to 'ordered'
I can't tell if this is an oversight, or an attempt to distinguish between
orders cancelled before the basket is sent to the vendor (i.e. orders abandoned
by the library) and orders cancelled after the basket is closed (cancelled by
the vendor) -- See Bug 10918.
To replicate:
Prerequisites: Existing vendor, Budget, Fund, set up an open basket.
1/ Place an order
2/ Cancel the order
Run the following query:
SELECT
ordernumber,
biblionumber,
orderstatus,
datecancellationprinted
FROM
aqorders
WHERE
orderstatus IN ('ordered', 'new')
AND datecancellationprinted IS NOT NULL
You will see orders with orderstatus set to 'new', and datecancellationprinted
with today's date.
3/ Close the basket
Run the query again, orderstatus for the new orders will now be 'ordered'.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list