Bug 4292

Summary: deleting a budget leaves funds orphaned
Product: Koha Reporter: Nicole C. Engard <nengard>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Bugs List <koha-bugs>
Severity: major    
Priority: P4 CC: jonathan.druart, mathsabypro, veron
Version: Main   
Hardware: PC   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12905
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: all budgets deleted
funds listed
order without budget

Description Chris Cormack 2010-05-21 01:25:27 UTC


---- Reported by nengard@gmail.com 2010-03-02 15:26:54 ----

When you delete a budget (cgi-bin/koha/admin/aqbudgetperiods.pl?op=delete_confirm&budget_period_id=3) there are no warnings - but if you delete a budget the funds are orphaned - meaning that the funds remain (cgi-bin/koha/admin/aqbudgets.pl) without being attached to a budget anymore.  This means that when you go to place an order there are no warnings saying that you need to define a budget and the budget pull down is empty on the order page (/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=1&basketno=14&biblionumber=40).

Something needs to be in place to prevent the deletion of things that will lead to things being broken.



---- Additional Comments From nengard@gmail.com 2010-03-02 15:30:12 ----

Created an attachment
all budgets deleted

cgi-bin/koha/admin/aqbudgetperiods.pl?op=delete_confirm&budget_period_id=3



---- Additional Comments From nengard@gmail.com 2010-03-02 15:30:33 ----

Created an attachment
funds listed

cgi-bin/koha/admin/aqbudgets.pl



---- Additional Comments From nengard@gmail.com 2010-03-02 15:30:59 ----

Created an attachment
order without budget

/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=1&basketno=14&biblionumber=40



--- Bug imported by chris@bigballofwax.co.nz 2010-05-21 01:25 UTC  ---

This bug was previously known as _bug_ 4292 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4292
Imported an attachment (id=1985)
Imported an attachment (id=1986)
Imported an attachment (id=1987)

Actual time not defined. Setting to 0.0
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.
The original submitter of attachment 1985 [details] is unknown.
   Reassigning to the person who moved it here: chris@bigballofwax.co.nz.
The original submitter of attachment 1986 [details] is unknown.
   Reassigning to the person who moved it here: chris@bigballofwax.co.nz.
The original submitter of attachment 1987 [details] is unknown.
   Reassigning to the person who moved it here: chris@bigballofwax.co.nz.

Comment 1 Mathieu Saby 2013-09-17 18:56:25 UTC
I think it is still a problem (it happends in my library). If so, I will make a patch for that.

M. Saby
Comment 2 Mathieu Saby 2014-09-10 22:10:43 UTC
I won't work on that

Mathieu
Comment 3 Jonathan Druart 2014-11-10 09:54:51 UTC
Patch submitted on bug 12905.

*** This bug has been marked as a duplicate of bug 12905 ***