From bbb58258bd516c262fb9e20b94ec801538a5ba99 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Wed, 11 Apr 2018 11:03:37 +0200 Subject: [PATCH] Payment Helper - besser Fehlermeldung in pay_invoice --- 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 c35b12c63..97aff8f1e 100644 --- a/SL/DB/Helper/Payment.pm +++ b/SL/DB/Helper/Payment.pm @@ -107,7 +107,7 @@ sub pay_invoice { # account where money is paid to/from: bank account or cash my $account_bank = SL::DB::Manager::Chart->find_by(id => $params{chart_id}); - croak "can't find bank account" unless ref $account_bank; + croak "can't find bank account with id " . $params{chart_id} unless ref $account_bank; my $reference_account = $self->reference_account; croak "can't find reference account (link = AR/AP) for invoice" unless ref $reference_account; -- 2.20.1