[Koha-bugs] [Bug 10869] can't delete order line if title deleted

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 23 22:56:46 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10869

--- Comment #24 from mathieu saby <mathieu.saby at univ-rennes2.fr> ---
Created attachment 22342
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=22342&action=edit
[PATCH 2/2] Bug 10869 Followup : change DelOrder and adds UT

Changes made to DelOrder : 
Returns undef if no param
DelOrder does no more need a biblionumber. It can be retreived inside the sub.
DelOrder is now cleaning aqorders_items.

UT added for DelOrder

To test :
A. With syspref  AcqCreateItem  = on placing an order

1. Fill a basket with some orders (some records with already existing items or
holds, some without items). New items linked with the order will be created
2. Keep the basket open
3. In the catalog, supress all the items attached to one of the record used in
the basket, then suppress the record
4. In the basket, check you can delete the order that was using deleted record
(click on link "Delete order" in the right column of the table)
5. After deleting the order, check there is a new line in the "Deleted orders"
table
6. Regression test : try to delete other orders, and check the deletion of the
order implies the deletion of items created when ordering
a/ If no items were attached to the record before you created the basket, you
can delete some other orders, AND their record. Try to delete order and record.
b/ If some items were attached to the record before you created the basket, you
can delete some other orders, BUT NOT their record. Try to delete only order.
After you have deleted it, the items created when ordering must have been
deleted.

7. Add some other orders to your basket  (some records with already existing
items or holds, some without items). New items linked with the order will be
created
8. In the catalog, supress all the items attached to one of the record used in
the basket, then suppress the record
9. Close the basket
10. Go on receipt page
11. Search the orders of your basket
12. In receipt page, check you can delete the order that was using deleted
record (click on link "Delete order" in the right column of the table)
13. Regression test : try to delete other orders
a/ If no items were attached to the record before you created the basket, you
can delete some other orders, AND their record. Try to delete order and record.
b/ If some items were attached to the record before you created the basket, you
can delete some other orders, BUT NOT their record. Try to delete only order.
After you have deleted it, the items created when ordering must have been
deleted.

B. With syspref  AcqCreateItem  = on receiving an order

1. Fill a basket with some orders (some records with already existing items or
holds, some without items).
2. Keep the basket open
3. In the catalog, supress all the items attached to one of the record used in
the basket, then suppress the record
4. In the basket, check you can delete the order that was using deleted record
(click on link "Delete order" in the right column of the table)
5. After deleting the order, check there is a new line in the "Deleted orders"
table
6. Regression test : try to delete other orders
a/ If no items were attached to the record before you created the basket, you
can delete some other orders, AND their record. Try to delete order and record.
b/ If some items were attached to the record before you created the basket, you
can delete some other orders, BUT NOT their record. Try to delete only order.
7. Add some other orders to your basket  (some records with already existing
items or holds, some without items).
8. In the catalog, supress all the items attached to one of the record used in
the basket, then suppress the record
9. Close the basket
10. Go on receipt page
11. Search the orders of your basket
12. In receipt page, check you can delete the order that was using deleted
record (click on link "Delete order" in the right column of the table)
13. Regression test : try to delete other orders
a/ If no items were attached to the record before you created the basket, you
can delete some other orders, AND their record. Try to delete order and record.
b/ If some items were attached to the record before you created the basket, you
can delete some other orders, BUT NOT their record. Try to delete only order.

and to test the UT :
prove t/db_dependant/Acquisition.t

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list