From 45819f6666d3fd5566026f887cf26b3bc945d809 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 https://bugs.koha-community.org/show_bug.cgi?id=19166 --- 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 de9113f..71ef1fb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt @@ -182,7 +182,7 @@ [% END %] - + -- 2.1.4