@@ -, +, @@ 21 day renewal period. 14 day renewal period. receive the correct 21 day loan period. will give a 14 day due date, rather than 21 days. receive the correct 14 day loan period. will give a 21 day due date, rather than 14 days. when the item is renewed, regardless of where it is checked out or renewed. --- C4/Circulation.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -2954,7 +2954,8 @@ sub AddRenewal { $datedue = (C4::Context->preference('RenewalPeriodBase') eq 'date_due') ? dt_from_string( $issuedata->{date_due} ) : DateTime->now( time_zone => C4::Context->tz()); - $datedue = CalcDateDue($datedue, $itemtype, $issuedata->{'branchcode'}, $borrower, 'is a renewal'); + my $branchcode = _GetCircControlBranch($item, $borrower); + $datedue = CalcDateDue($datedue, $itemtype, $branchcode, $borrower, 'is a renewal'); } # Update the issues record to have the new due date, and a new count --