X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FController%2FBankTransaction.pm;h=68047f3144d3204c066da6215f3e3b8395eca4bb;hb=ba9e2e01d2662182f04da256e0ff7ce258428332;hp=8f4bffd5ce35d5fbfb25ee404347cd5b55be3098;hpb=20392548f2e8ed92478542893df9852d6987e031;p=kivitendo-erp.git diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index 8f4bffd5c..68047f314 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -533,11 +533,13 @@ sub save_single_bank_transaction { $bank_transaction->invoice_amount($bank_transaction->amount); $amount_of_transaction = 0; - push @warnings, { - %data, - result => 'warning', - message => $::locale->text('Invoice #1 was overpaid by #2.', $invoice->invnumber, $::form->format_amount(\%::myconfig, $overpaid_amount, 2)), - }; + if ($overpaid_amount >= 0.01) { + push @warnings, { + %data, + result => 'warning', + message => $::locale->text('Invoice #1 was overpaid by #2.', $invoice->invnumber, $::form->format_amount(\%::myconfig, $overpaid_amount, 2)), + }; + } } # Record a record link from the bank transaction to the invoice