From 9269ac25be314f98ad0d28cc768e44dacf593898 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=UTF-8 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 --- 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 75b6091..66c3582 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 b67c635..16b3b4f 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.1.4