Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 203d1f43

Von Jan Büren vor etwa 2 Jahren hinzugefügt

  • ID 203d1f43e40f5b831313c30854b75993a2e75576
  • Vorgänger 437c5cd4
  • Nachfolger 25a68a25

fx_loss doch erstmal ignorieren für invoice_amount

Unterschiede anzeigen:

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