Bug 23318

Summary: False error about missing budget on neworderbiblio.pl
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 6994    
Bug Blocks:    

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?