Bug 8452 - "You must define a budget in Administration" always shows on acqui-home.pl
Summary: "You must define a budget in Administration" always shows on acqui-home.pl
Status: CLOSED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: master
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-16 11:45 UTC by Kyle M Hall
Modified: 2014-12-07 20:02 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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle M Hall 2012-07-16 11:45:06 UTC
The warning message "You must define a budget in Administration" is always displayed on acqui-home.pl regardless of whether or not you have actually defined a budget.
Comment 1 Kyle M Hall 2012-07-16 12:03:03 UTC
Upping importance. The bug appears to prevent me from using the Acquisitions modules> First, I created a Budget and Fund. I then went into Acquisitions and created a basket. Any attempt to add an item to that basket was met with the message "You can't create any orders unless you first define a budget and a fund.".
Comment 2 Kyle M Hall 2012-07-16 12:17:32 UTC
Lowering importance. The only account affected by this bug is the admin account ( i.e. borrowernumber 0 ). The subroutine CanUserUseBudget contains the line:

return 0 unless ($borrower and $budget);

which will return zero for anyone logged in as the super-admin, even though it is a valid account.
Comment 3 Katrin Fischer 2012-07-16 12:21:46 UTC
Not sure we should fix this. Lots of things in acq are dependent on the borrowernumber, because the system needs the information to figure out if the user is allowed to see a budget, fine, order tc. 
Maybe we should show a warning to stop using the superuser?
Comment 4 Katrin Fischer 2012-07-16 12:22:22 UTC
... where fine = fund. It's Monday :)
Comment 5 Kyle M Hall 2012-07-16 12:53:00 UTC
That's not a bad idea. Perhaps a system-wide warning at the top, that simply states you are using the superadmin account, and it is not recommended that you use it for day-to-day activity.
Comment 6 Jared Camins-Esakov 2012-11-10 15:14:50 UTC
Marking RESOLVED--WONTFIX.

As a note, if you are using Plack and created the budget as a database user, it seems that you have to restart Plack before the message goes away, even if you're logged in as a regular user after finishing the configuration.