Revision 54680b6c
Von Jan Büren vor fast 3 Jahren hinzugefügt
SL/DB/Helper/SalesPurchaseInvoice.pm | ||
---|---|---|
32 | 32 |
$total ||= 0; |
33 | 33 |
$total += $transaction->amount; |
34 | 34 |
} |
35 |
die "Invalid calculated amount" if abs($total) - abs($self->amount) > 0.001;
|
|
35 |
die "Invalid calculated amount. Calc: $total Amount: " . abs($self->amount) if abs($total) - abs($self->amount) > 0.001;
|
|
36 | 36 |
return $tax_and_amount_by_tax_id; |
37 | 37 |
} |
38 | 38 |
|
Auch abrufbar als: Unified diff
SPI-Helper: Im Fehlerfall genauere Angaben zur Analyse ausgeben