From f7cdb6db874f2c71d6c13d0733021e23d71e68f3 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Mon, 16 May 2016 16:28:19 +0200 Subject: [PATCH] Invoice - add_ar_amount_row - bessere 'die' Fehlermeldung --- SL/DB/Invoice.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = []; -- 2.20.1