Bug 15791 - Don't delete a fund if existing orders are linked to it
Summary: Don't delete a fund if existing orders are linked to it
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL: /cgi-bin/koha/admin/aqbudgets.pl?op=d...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-10 20:14 UTC by Owen Leonard
Modified: 2020-12-04 15:04 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Leonard 2016-02-10 20:14:37 UTC
When you go to delete a fund Koha displays this message in the confirmation dialog:

 "If you delete this fund, all orders linked to this fund will be deleted!"

The error appears even if there are no orders linked to the fund. In order to be consistent we ought to warn the user only if existing orders will be deleted.

Should it even be possible to delete a fund if there are orders linked to it?