Revision 9e6bbabc
Von Jan Büren vor fast 2 Jahren hinzugefügt
- ID 9e6bbabc5698797f39ecf3fcbe29709347d60fb4
- Vorgänger 78ae788c
SL/Controller/BankTransaction.pm | ||
---|---|---|
738 | 738 |
# die "Invalid state, calculated invoice_amount differs from expected invoice amount" unless (abs($bank_amount->{return_bank_amount}) - abs($amount_for_booking) < 0.001); |
739 | 739 |
$bank_transaction->invoice_amount($bank_transaction->invoice_amount + $amount_for_booking); |
740 | 740 |
} else { |
741 |
die "Invalid state, calculated invoice_amount differs from expected invoice amount" unless $fx_book || (abs($bank_amount->{return_bank_amount}) - abs($amount_for_booking) < 0.003); |
|
741 |
die "Invalid state, calculated invoice_amount differs from expected invoice amount: $amount_for_booking <> " . $bank_amount->{return_bank_amount} |
|
742 |
unless $fx_book || (abs($bank_amount->{return_bank_amount}) - abs($amount_for_booking) < 0.005); |
|
742 | 743 |
$bank_transaction->invoice_amount($bank_transaction->invoice_amount + $bank_amount->{return_bank_amount}); |
743 | 744 |
#$bank_transaction->invoice_amount($bank_transaction->invoice_amount + $amount_for_booking); |
744 | 745 |
} |
Auch abrufbar als: Unified diff
Wechselkurs, Sicherheitscheck auf Rundungsdifferenz < 0.005