projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1118575
)
SPI-Helper: Im Fehlerfall genauere Angaben zur Analyse ausgeben
author
Jan Büren
<jan@kivitendo.de>
Wed, 23 Mar 2022 11:52:12 +0000
(12:52 +0100)
committer
Jan Büren
<jan@kivitendo.de>
Thu, 24 Mar 2022 15:39:58 +0000
(16:39 +0100)
SL/DB/Helper/SalesPurchaseInvoice.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Helper/SalesPurchaseInvoice.pm
b/SL/DB/Helper/SalesPurchaseInvoice.pm
index
ed1ba32
..
59e4697
100644
(file)
--- 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;
}