From f4ebee3d6dbd46e854fe54212ac66890c122b18a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 8 Dec 2021 10:28:02 +0100 Subject: [PATCH] Anzahlungs-Rg.: Kontoauszug verbuchen: Warnung vermeiden. invoice_type nehmen, MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … da type auch undef sein kann --- SL/DB/Helper/Payment.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Helper/Payment.pm b/SL/DB/Helper/Payment.pm index 96e8bc689..386d284e4 100644 --- a/SL/DB/Helper/Payment.pm +++ b/SL/DB/Helper/Payment.pm @@ -292,7 +292,7 @@ sub pay_invoice { push @new_acc_ids, $arap_booking->acc_trans_id; # hook for invoice_for_advance_payment DATEV always pairs, acc_trans_id has to be higher than arap_booking ;-) - if ($self->type eq 'invoice_for_advance_payment') { + if ($self->invoice_type eq 'invoice_for_advance_payment') { my $clearing_chart = SL::DB::Chart->new(id => $::instance_conf->get_advance_payment_clearing_chart_id)->load; die "No Clearing Chart for Advance Payment" unless ref $clearing_chart eq 'SL::DB::Chart'; -- 2.20.1