Koha/C4
Christophe Croullebois 4d67e69107 Bug 5680: Order cancelling improvement : delete attached items & biblio if avalaible
- all items attached to the order are deleted
- if there is no more items, and if the biblio is not in other orders and no subscriptions and no holds then the biblio is proposed to deletion
Now whe have 2 links : "delete order" and "delete order and catalog record", the second one appears only if the deletion is possible.
Note that if an hold is related to the item or if the item is unique for the biblio the link "Delete order" is canceled due to hold remaining.
On mouse over explanations are shown with count.
More lines of warnings with count are shown depending of the case.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Configuration:
AcqCreateItem = on order

Test cases and results:

1) Order new record with 2 items
a) From basket
- delete order: only deletes items, OK!
- delete order and catalog record: deletes record and items, OK
b) From shipment/receive
- delete order: only deletes items, OK!

2) Order 1 additional item for existing record with 1 item
a) From basket:
- delete order: works, existing item and record remain, OK
- Can't delete order and catalog record, 1 item left, OK!

3) Order new record with 1 item, title level hold on record
a) From basket:
- delete order: not possible, OK!
- delete orer and catalog record: not possible, OK!
b) From shipment/receive page
- Cancel: Deletes order, record and hold silently.
NO WARNING. NOT OK. See note below.

4) Order 1 additional item for existing record with 1 item,
item level hold on existing item
a) From basket:
- delete order: works, hold and existing item remain, OK!
- delete order and catalog record: not possible, OK!
b) From shipment/receive page
- Cancel: on order item is deleted, other item and hold remain.

5) Order new serial record, create subscription
a) From basket:
- delete order: works, record and subscription remain, OK!
- delete order and catalog record: not possible, OK!
b) From shipment/receive page:
- Cancel: Subscription and record are silently deleted. NOT OK.

6) Order additional item for existing record with other on order items
a) From basket:
- delete order: works, existing on order items remain, OK!
- delete order and catalog record: not possible, OK!
b) From shipment:
- Cancel: deletes order and ordered item. OK.

Changes made:
I changed the wording of the error messages a bit in the template.
I changed the message 'Can't delete order and catalog record' to not be
shown as a link, as the link does nothing. Tooltip still appears.
I attached a screenshot to the bug showing some of my changes.

Hope that's ok.

Necessary  enhancements:
Cancelling orders when receiving items should work the same as from the
basket summary page. We need the same checks and messages there before
deleting records and items automatically.
I am signing off on this, but to go into Koha it  needs a follow-up for the
order receive page.
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-10-19 16:58:46 +13:00
..
AuthoritiesMarc
Barcodes
Cache
ClassSortRoutine
Creators bug_6318: Always give predefined fields drop downs on label layout edit 2011-09-16 11:23:59 +12:00
External
Form Fix for Bug 6458 - incorrect parsing result in translation processing 2011-09-15 08:38:58 +12:00
Heading
ILSDI Bug 5639 (MT #3605) Fix escaping in ILSDI 2011-08-05 09:07:15 +12:00
Installer Fixing missing padding on module version 2011-07-21 20:04:02 +12:00
Labels bug 5653: use itemcallnumber in bib label layouts 2011-06-13 11:15:34 +12:00
Members bug_6253: Unified member Search() 2011-10-19 16:23:02 +13:00
Output
Patroncards
Reports Bug 6755 : Fixing a bug with guided reports 2011-09-27 07:04:02 +13:00
Search
SIP Bug 3704: SIP Checkin of not checked out item returns error without reason 2011-09-22 19:39:29 +12:00
tests
VirtualShelves Bug 5524 : Cant delete list from the second page of lists 2011-09-01 20:55:16 +12:00
Accounts.pm bug_5533: Slightly improved marking items as lost 2011-10-18 09:01:39 +13:00
Acquisition.pm Bug 5680: Order cancelling improvement : delete attached items & biblio if avalaible 2011-10-19 16:58:46 +13:00
Auth.pm Merge remote-tracking branch 'kc/new/bug_5995' into kcmaster 2011-10-15 12:59:34 +13:00
Auth_cas_servers.yaml.orig Bug 5630 CAS improvements 2011-10-13 10:49:49 +13:00
Auth_with_cas.pm Bug 5630 CAS improvements 2011-10-13 10:49:49 +13:00
Auth_with_ldap.pm Merge remote-tracking branch 'kc/new/bug_5995' into kcmaster 2011-10-15 12:59:34 +13:00
AuthoritiesMarc.pm Bug 5737: Modified the merge subroutine in AuthoritiesMarc.pm so it won't destroy the connection to the biblioserver. 2011-08-03 14:01:52 +12:00
BackgroundJob.pm
Barcodes.pm
Biblio.pm Bug 5680: Order cancelling improvement : delete attached items & biblio if avalaible 2011-10-19 16:58:46 +13:00
Bookseller.pm
Boolean.pm
Branch.pm Bug 7034: de-nesting C4/Branch.pm 2011-10-19 03:23:31 +13:00
Breeding.pm
Budgets.pm bug_4831: Use unitprice (actual cost) when totalling spent amounts for "All available funds", as in "Already received" 2011-09-22 19:35:40 +12:00
Cache.pm
Calendar.pm
Category.pm
Charset.pm bug 5579 : Fixes several exports to embed items 2011-04-19 22:35:15 +12:00
Circulation.pm Bug 7036 de-nesting C4::Circulation 2011-10-19 03:47:31 +13:00
ClassSortRoutine.pm Bug 7035 de-nesting C4::ClassSource & ClassSortRoutine 2011-10-19 03:25:59 +13:00
ClassSource.pm Bug 7035 de-nesting C4::ClassSource & ClassSortRoutine 2011-10-19 03:25:59 +13:00
Context.pm Bug 5728: adding note and manager_id fields to accountlines 2011-04-09 21:25:18 +12:00
Contract.pm
Creators.pm
Csv.pm
Dates.pm
Debug.pm
Heading.pm Bug 5415 Let calls of SimpleSearch utilize considtent interface 2011-04-08 13:52:57 +12:00
ImportBatch.pm Bug 5859: Allow user to set encoding for import 2011-04-19 13:05:48 +12:00
ImportExportFramework.pm Bug 6723 : import-framework-crlf 2011-08-26 12:46:52 +12:00
Input.pm
Installer.pm Bug 6537 - squashed version of the previous 5 commits, signed-off 2011-09-07 09:19:07 +12:00
ItemCirculationAlertPreference.pm
Items.pm Bug 5680: Order cancelling improvement : delete attached items & biblio if avalaible 2011-10-19 16:58:46 +13:00
ItemType.pm Bug 6371 Item Types description not properly displayed if not pure ASCII 2011-10-08 20:10:29 +13:00
Koha.pm Merge remote branch 'kc/new/pending_qa/enh/bug_3644' into kcmaster 2011-04-09 19:16:45 +12:00
Labels.pm
Languages.pm Bug 6755 Web browser default lang != syspref selected langs 2011-09-26 23:26:09 +13:00
Letters.pm Bug 5263 - Add support for including fields from the ISSUES table in advanced due notices 2011-08-02 12:44:42 +12:00
Log.pm Bug 6460: alternative fix, updating template and script instead of C4::Log 2011-09-24 10:01:09 +12:00
Maintainance.pm
Matcher.pm Bug 5415 Let calls of SimpleSearch utilize considtent interface 2011-04-08 13:52:57 +12:00
Members.pm bug_6253: Unified member Search() 2011-10-19 16:23:02 +13:00
Message.pm
NewsChannels.pm
Output.pm Bug 6755 follow up, fixing broken POD 2011-09-23 11:33:00 +12:00
Overdues.pm Bug 6927-- Typo in C4::Overdues.pm 2011-09-28 09:24:17 +13:00
Patroncards.pm
Print.pm Bug 7037 de-nesting C4/Print.pm 2011-10-19 03:48:21 +13:00
Record.pm Bug 5453 : Move declarations out of conditionals 2011-07-15 15:50:24 +12:00
Reports.pm
Reserves.pm Bug 7051 de-nesting C4::Reserve, 1st step 2011-10-19 04:02:27 +13:00
Review.pm
Ris.pm bug 5780 followup: RIS export now includes all URLs 2011-10-14 10:37:31 +13:00
RotatingCollections.pm
Scheduler.pm
Scrubber.pm
Search.pm Bug 5528: Analytic records support 2011-10-13 10:03:39 +13:00
Serials.pm Bug 6315: Fix depreciated constructions in C4::Serials 2011-05-15 20:42:08 +12:00
Service.pm
ShelfBrowser.pm
SMS.pm
SQLHelper.pm bug_6253: Unified member Search() 2011-10-19 16:23:02 +13:00
Stats.pm
Suggestions.pm
Tags.pm
Templates.pm Bug 6840 warning in logs 2011-10-13 16:17:33 +13:00
TmplToken.pm Bug 6458 Template Toolkit files test case 2011-08-18 21:11:50 +12:00
TmplTokenType.pm Bug 6458 Template Toolkit files test case 2011-08-18 21:11:50 +12:00
TTParser.pm Bug 6458 Template Toolkit files test case 2011-08-18 21:11:50 +12:00
UploadedFile.pm
Utils.pm
VirtualShelves.pm Bug 6555 : only 10 lists show in the staff client 2011-09-07 09:00:38 +12:00
XISBN.pm
XSLT.pm Bug 6755 Problems with switching languages 2011-09-23 09:47:09 +12:00
Z3950.pm