Bug 15004: Allow to change amounts of duplicated budgets
[koha.git] / admin / aqbudgetperiods.pl
index f837b81..93cef8a 100755 (executable)
@@ -163,6 +163,8 @@ elsif ( $op eq 'duplicate_budget' ){
     my $budget_period_startdate = dt_from_string $input->param('budget_period_startdate');
     my $budget_period_enddate   = dt_from_string $input->param('budget_period_enddate');
     my $budget_period_description = $input->param('budget_period_description');
+    my $amount_change_percentage = $input->param('amount_change_percentage');
+    my $amount_change_round_increment = $input->param('amount_change_round_increment');
     my $mark_original_budget_as_inactive = $input->param('mark_original_budget_as_inactive');
     my $reset_all_budgets = $input->param('reset_all_budgets');
 
@@ -172,6 +174,8 @@ elsif ( $op eq 'duplicate_budget' ){
             budget_period_startdate => $budget_period_startdate,
             budget_period_enddate   => $budget_period_enddate,
             budget_period_description => $budget_period_description,
+            amount_change_percentage => $amount_change_percentage,
+            amount_change_round_increment => $amount_change_round_increment,
             mark_original_budget_as_inactive => $mark_original_budget_as_inactive,
             reset_all_budgets => $reset_all_budgets,
         }