From: Jan Büren Date: Wed, 23 Mar 2022 11:52:12 +0000 (+0100) Subject: SPI-Helper: Im Fehlerfall genauere Angaben zur Analyse ausgeben X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~97 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=54680b6c5aa25c6807d63fc0c4c04c1b71ab8666;p=kivitendo-erp.git SPI-Helper: Im Fehlerfall genauere Angaben zur Analyse ausgeben --- diff --git a/SL/DB/Helper/SalesPurchaseInvoice.pm b/SL/DB/Helper/SalesPurchaseInvoice.pm index ed1ba32d2..59e4697e7 100644 --- a/SL/DB/Helper/SalesPurchaseInvoice.pm +++ b/SL/DB/Helper/SalesPurchaseInvoice.pm @@ -32,7 +32,7 @@ sub get_tax_and_amount_by_tax_chart_id { $total ||= 0; $total += $transaction->amount; } - die "Invalid calculated amount" if abs($total) - abs($self->amount) > 0.001; + die "Invalid calculated amount. Calc: $total Amount: " . abs($self->amount) if abs($total) - abs($self->amount) > 0.001; return $tax_and_amount_by_tax_id; }