From: Bernd Bleßmann Date: Wed, 8 Dec 2021 09:28:02 +0000 (+0100) Subject: Anzahlungs-Rg.: Kontoauszug verbuchen: Warnung vermeiden. invoice_type nehmen, X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~217^2~26 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f4ebee3d6dbd46e854fe54212ac66890c122b18a;p=kivitendo-erp.git Anzahlungs-Rg.: Kontoauszug verbuchen: Warnung vermeiden. invoice_type nehmen, … da type auch undef sein kann --- 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';