From 54680b6c5aa25c6807d63fc0c4c04c1b71ab8666 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 23 Mar 2022 12:52:12 +0100 Subject: [PATCH] SPI-Helper: Im Fehlerfall genauere Angaben zur Analyse ausgeben --- SL/DB/Helper/SalesPurchaseInvoice.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1