Revision 5ef28dc4
Von Jan Büren vor fast 2 Jahren hinzugefügt
SL/DB/Helper/Payment.pm | ||
---|---|---|
195 | 195 |
my $fxloss_chart = SL::DB::Manager::Chart->find_by(id => $::instance_conf->get_fxloss_accno_id) || die "Can't determine fxloss chart"; |
196 | 196 |
$main::lxdebug->message(0, 'was sagt gain loss' . $fx_gain_loss_amount); |
197 | 197 |
my $gain_loss_chart = $fx_gain_loss_amount > 0 ? $fxgain_chart : $fxloss_chart; |
198 |
$paid_amount += abs($fx_gain_loss_amount); # if $fx_gain_loss_amount < 0; # only add if we have fx_loss |
|
198 |
# $paid_amount += abs($fx_gain_loss_amount); # if $fx_gain_loss_amount < 0; # only add if we have fx_loss |
|
199 |
$paid_amount += $fx_gain_loss_amount if $fx_gain_loss_amount < 0; # only add if we have fx_loss |
|
200 |
|
|
199 | 201 |
$main::lxdebug->message(0, 'paid2 ' . $paid_amount); |
200 | 202 |
$main::lxdebug->message(0, 'paid2chart ' . $fx_gain_loss_amount); |
201 | 203 |
# $fx_gain_loss_amount = $gain_loss_amount; |
Auch abrufbar als: Unified diff
fx_loss doch erstmal ignorieren für invoice_amount