X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fgl.pl;h=69d3be46e37648ca2e6608788bc309f8cd360112;hb=850ba82b521647752529615b3d5d4383ea77b2e6;hp=8efe48fb8719c1756d053314cb49f96c92466a08;hpb=8ae5d46d28055bea4e44bb36243ab935120ac2c0;p=kivitendo-erp.git diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 8efe48fb8..69d3be46e 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -1363,7 +1363,7 @@ sub post_transaction { die "No bank transaction found" unless $bt; $chart_id = SL::DB::Manager::BankAccount->find_by(id => $bt->local_bank_account_id)->chart_id; - die "no chart id:" unless $chart_id; + die "no chart id" unless $chart_id; $payment = SL::DB::Manager::AccTransaction->get_all(where => [ trans_id => $::form->{id}, chart_link => { like => '%_paid%' }, @@ -1372,7 +1372,7 @@ sub post_transaction { # credit/debit * -1 matches the sign for bt.amount and bt.invoice_amount - die "Can only assign the full (partial) bank amount to a single general ledger booking" . $bt->not_assigned_amount . " " . ($payment->[0]->amount * -1) + die "Can only assign the full (partial) bank amount to a single general ledger booking: " . $bt->not_assigned_amount . " " . ($payment->[0]->amount * -1) unless (abs($bt->not_assigned_amount - ($payment->[0]->amount * -1)) < 0.001); $bt->update_attributes(invoice_amount => $bt->invoice_amount + ($payment->[0]->amount * -1));