From: G. Richardson Date: Wed, 11 Apr 2018 09:03:37 +0000 (+0200) Subject: Payment Helper - besser Fehlermeldung in pay_invoice X-Git-Tag: release-3.5.4~422 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=bbb58258bd516c262fb9e20b94ec801538a5ba99;p=kivitendo-erp.git Payment Helper - besser Fehlermeldung in pay_invoice --- 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;