Bug 15791

Summary: Don't delete a fund if existing orders are linked to it
Product: Koha Reporter: Owen Leonard <oleonard>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: marjorie.barry-vila
Version: Main   
Hardware: All   
OS: All   
URL: /cgi-bin/koha/admin/aqbudgets.pl?op=delete_confirm
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

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?