Bug 23318 - False error about missing budget on neworderbiblio.pl
Summary: False error about missing budget on neworderbiblio.pl
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:
Keywords:
Depends on: 6994
Blocks:
  Show dependency treegraph
 
Reported: 2019-07-15 17:11 UTC by Nick Clemens (kidclamp)
Modified: 2019-11-20 15:03 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 Nick Clemens (kidclamp) 2019-07-15 17:11:42 UTC
To recreate:
1 - Have some budgets and funds in your system or create them
2 - Make a new superlibrarian
3 - Go to acquisitions
4 - Find/create a vendor
5 - Create/open a basket
6 - Add items to basket - from an existing biblio - enter a term with results
7 - Scroll to bottom of page - note error about budgets

The current check calls GetBudgetHierarchy with a borrower - this returns only budgets owned by that user (or with no owner)

On basket.pl we call the check with no borrower, but then check if the user can use any of the budgets. This is probably the better model
Comment 1 Jonathan Druart 2019-11-20 15:03:17 UTC
Which error am I supposed to see?