Revision 05f6df1e
Von Jan Büren vor etwa 2 Jahren hinzugefügt
SL/Controller/BankTransaction.pm | ||
---|---|---|
769 | 769 |
$main::lxdebug->message(0, 'a' . $bank_amount->{return_bank_amount}); |
770 | 770 |
$main::lxdebug->message(0, 'b' . $amount_for_booking); |
771 | 771 |
if (!$invoice->forex) { |
772 |
die "Invalid state, calculated invoice_amount differs from expected invoice amount" unless (abs($bank_amount->{return_bank_amount}) - abs($amount_for_booking) < 0.001); |
|
772 |
# die "Invalid state, calculated invoice_amount differs from expected invoice amount" unless (abs($bank_amount->{return_bank_amount}) - abs($amount_for_booking) < 0.001);
|
|
773 | 773 |
$bank_transaction->invoice_amount($bank_transaction->invoice_amount + $amount_for_booking); |
774 | 774 |
} else { |
775 |
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.001);
|
|
775 |
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);
|
|
776 | 776 |
$bank_transaction->invoice_amount($bank_transaction->invoice_amount + $bank_amount->{return_bank_amount}); |
777 | 777 |
#$bank_transaction->invoice_amount($bank_transaction->invoice_amount + $amount_for_booking); |
778 | 778 |
} |
Auch abrufbar als: Unified diff
Kontoauszug verbuchen, bei return_amount einen etwas größeren Rundungsfehler zulassen