For testing, this is what I did with a fresh concerto dataset:
Web Client -> Acquisitions -> Purchase Orders -> Search -> 2 -> Copies(2) on lineitem #3
on copy ACQ0001, cancel, Delayed: Backordered, Cancel Copy, OK
on copy ACQ0002, cancel, Canceled: By Vendor, Cancel Copy, OK
the UI should refresh and show lineitem #3 as Backordered
For refreshing the data for iterative testing, I used the following SQL in the database:
For testing, this is what I did with a fresh concerto dataset:
Web Client -> Acquisitions -> Purchase Orders -> Search -> 2 -> Copies(2) on lineitem #3
on copy ACQ0001, cancel, Delayed: Backordered, Cancel Copy, OK
on copy ACQ0002, cancel, Canceled: By Vendor, Cancel Copy, OK
the UI should refresh and show lineitem #3 as Backordered
For refreshing the data for iterative testing, I used the following SQL in the database:
BEGIN;
TRUNCATE acq.fund CASCADE; source_ credit CASCADE; holding_ subfield_ map CASCADE;
TRUNCATE acq.fund_allocation CASCADE;
TRUNCATE acq.fund_debit CASCADE;
TRUNCATE acq.funding_source CASCADE;
TRUNCATE acq.funding_
TRUNCATE acq.lineitem CASCADE;
TRUNCATE acq.lineitem_detail CASCADE;
TRUNCATE acq.provider CASCADE;
TRUNCATE acq.provider_
TRUNCATE acq.purchase_order CASCADE;
\i ~/git/Evergreen /Open-ILS/ tests/datasets/ sql/acq. sql
COMMIT;