From eff01169bbb7038822b2d7a52f46ce0c62ab3443 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 1 Nov 2021 14:22:04 +0000 Subject: [PATCH] Bug 29385: Catch register_id for payments against fees This patch adds the missing cash_register definition in the call to pay with a set of lines defined. Signed-off-by: Kyle M Hall --- C4/SIP/ILS/Transaction/FeePayment.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/C4/SIP/ILS/Transaction/FeePayment.pm b/C4/SIP/ILS/Transaction/FeePayment.pm index 7748b1a1d8..a0c0619d0d 100644 --- a/C4/SIP/ILS/Transaction/FeePayment.pm +++ b/C4/SIP/ILS/Transaction/FeePayment.pm @@ -62,11 +62,12 @@ sub pay { if ( $fee ) { my $pay_response = $account->pay( { - amount => $amt, - type => $type, - payment_type => 'SIP' . $sip_type, - lines => [$fee], - interface => C4::Context->interface + amount => $amt, + type => $type, + payment_type => 'SIP' . $sip_type, + lines => [$fee], + interface => C4::Context->interface, + cash_register => $register_id } ); return { -- 2.30.1 (Apple Git-130)