Revision b3914ca6
Von Jan Büren vor fast 2 Jahren hinzugefügt
SL/DB/Helper/Payment.pm | ||
---|---|---|
215 | 215 |
# : $self->invoice_type =~ m/invoice|ar_transaction|purchase_credit_note|invoice_for_advance_payment/ ? -1 |
216 | 216 |
# : die "invalid state"; |
217 | 217 |
|
218 |
$fx_gain_loss_amount = _round($amount / $exchangerate * ( $self->get_exchangerate - $exchangerate)); # * $fx_gain_loss_sign;
|
|
218 |
$fx_gain_loss_amount = _round($params{amount} / $exchangerate * ( $self->get_exchangerate - $exchangerate)); # * $fx_gain_loss_sign;
|
|
219 | 219 |
|
220 | 220 |
$main::lxdebug->message(0, 'was sagt gain loss 2 ' . $fx_gain_loss_amount); |
221 | 221 |
# die "huchz" . $fx_gain_loss_amount; |
Auch abrufbar als: Unified diff
Payment-Helper: Wechselkursgewinn und -Verlust mit ungerundetem Betrag berechnen