Bugzilla – Attachment 45682 Details for
Bug 15004
Allow to change amounts of duplicated budgets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15004: Ensure that the reset_all_budgets behavior is kept
Bug-15004-Ensure-that-the-resetallbudgets-behavior.patch (text/plain), 1.72 KB, created by
Jonathan Druart
on 2015-12-15 08:17:45 UTC
(
hide
)
Description:
Bug 15004: Ensure that the reset_all_budgets behavior is kept
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-12-15 08:17:45 UTC
Size:
1.72 KB
patch
obsolete
>From 1f2d096773d2cc4b2b196eb776183cc241d0c2a2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 2 Dec 2015 12:26:38 +0000 >Subject: [PATCH] Bug 15004: Ensure that the reset_all_budgets behavior is kept > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Budgets.t | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Budgets.t b/t/db_dependent/Budgets.t >index 91a255f..0f59b8b 100755 >--- a/t/db_dependent/Budgets.t >+++ b/t/db_dependent/Budgets.t >@@ -1,5 +1,5 @@ > use Modern::Perl; >-use Test::More tests => 129; >+use Test::More tests => 130; > > BEGIN { > use_ok('C4::Budgets') >@@ -490,6 +490,19 @@ cmp_ok($budget_hierarchy_cloned->[3]->{budget_amount}, '==', 115, "CloneBudgetPe > cmp_ok($budget_hierarchy_cloned->[4]->{budget_amount}, '==', 2320, "CloneBudgetPeriod changed correctly funds amounts"); > cmp_ok($budget_hierarchy_cloned->[5]->{budget_amount}, '==', 0, "CloneBudgetPeriod changed correctly funds amounts"); > >+$budget_period_id_cloned = C4::Budgets::CloneBudgetPeriod( >+ { >+ budget_period_id => $budget_period_id, >+ budget_period_startdate => '2014-01-01', >+ budget_period_enddate => '2014-12-31', >+ amount_change_percentage => 16, >+ amount_change_round_increment => 5, >+ reset_all_budgets => 1, >+ } >+); >+$budget_hierarchy_cloned = GetBudgetHierarchy($budget_period_id_cloned); >+cmp_ok($budget_hierarchy_cloned->[0]->{budget_amount}, '==', 0, "CloneBudgetPeriod reset all fund amounts"); >+ > # MoveOrders > my $number_orders_moved = C4::Budgets::MoveOrders(); > is( $number_orders_moved, undef, 'MoveOrders return undef if no arg passed' ); >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15004
:
43380
|
44299
|
45322
|
45323
|
45663
|
45681
| 45682 |
45683