From 7465acb98b76db04a7058ccc3fe48b96e3ceb1a8 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 13 Mar 2018 09:17:24 +0000 Subject: [PATCH] Bug 19166: Get correct value for encumbering when open for new lines MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit https://bugs.koha-community.org/show_bug.cgi?id=19166 Signed-off-by: Séverine QUEUNE Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens --- acqui/invoice.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/acqui/invoice.pl b/acqui/invoice.pl index 75b6091239..66c3582f2e 100755 --- a/acqui/invoice.pl +++ b/acqui/invoice.pl @@ -132,7 +132,7 @@ elsif ( $op && $op eq 'mod_adj' ) { reason => $reason[$i], note => $note[$i], budget_id => $budget_id[$i] || undef, - encumber_open => $encumber_open[$i], + encumber_open => defined $e_open{ $adjustment_id[$i] } ? 1 : 0, }); $new_adj->store(); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt index 25f5a14042..d872b4170a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt @@ -183,7 +183,7 @@ [% END %] - + -- 2.39.5