From: G. Richardson Date: Mon, 16 May 2016 14:28:19 +0000 (+0200) Subject: Invoice - add_ar_amount_row - bessere 'die' Fehlermeldung X-Git-Tag: release-3.5.4~2233 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f7cdb6db874f2c71d6c13d0733021e23d71e68f3;p=kivitendo-erp.git Invoice - add_ar_amount_row - bessere 'die' Fehlermeldung --- diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index 99c2e11ad..7800daa0d 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -325,7 +325,7 @@ sub add_ar_amount_row { die "not an ar invoice" if $self->invoice and not $self->customer_id; die "add_ar_amount_row needs a chart object as chart param" unless $params{chart} && $params{chart}->isa('SL::DB::Chart'); - die unless $params{chart}->link =~ /AR_amount/; + die "chart must be an AR_amount chart" unless $params{chart}->link =~ /AR_amount/; my $acc_trans = [];