From a2f6d2c4d2118a98c464948d3c0266cab332a868 Mon Sep 17 00:00:00 2001 From: Zoe Schoeler Date: Tue, 17 Jan 2017 23:22:17 +0000 Subject: [PATCH] Bug 17784 Ability to see funds with an amount of 0.00 when doing a new order TEST PLAN 1. Go to the acquisition module and create budget with fund of 0.00 and another fund of 1.00. 2. On acquisitions use a vendor to create a new basket and add an order to that basket. 3.Find a record and order it. 4. Under accounting details the fund with 0 in it won't be visable. 5. Apply patch and refresh, then it should be. --- acqui/neworderempty.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl index b76b4f4..2599f8f 100755 --- a/acqui/neworderempty.pl +++ b/acqui/neworderempty.pl @@ -219,7 +219,7 @@ my $budget_loop = []; my $budgets = GetBudgetHierarchy; foreach my $r (@{$budgets}) { next unless (CanUserUseBudget($borrower, $r, $userflags)); - if (!defined $r->{budget_amount} || $r->{budget_amount} == 0) { + if (!defined $r->{budget_amount} || $r->{budget_amount} <0) { next; } push @{$budget_loop}, { -- 2.1.4