Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a08f3a4c

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

  • ID a08f3a4c4263da615b78381fa9050beb2e1229f6
  • Vorgänger f7cefd1f
  • Nachfolger a8d3454c

Wechselkurs Zahlung ist identisch mit Wechselkurs Buchung. Rundungsfehler < 0.001

Unterschiede anzeigen:

SL/Controller/BankTransaction.pm
707 707
        $bank_transaction->exchangerate(undef);       # maybe user reassigned bank_transaction
708 708
      } elsif ($default_rate != $fx_rate) {           # set record (banktransaction) exchangerate
709 709
        $bank_transaction->exchangerate($fx_rate);    # custom rate, will be displayed in ap, ir, is
710
      } elsif ($default_rate == $fx_rate) {
710
      } elsif ($default_rate - $fx_rate < 0.001) {
711 711
        # should be last valid state -> do nothing
712 712
      } else { die "Invalid exchange rate state:" . $default_rate . " " . $fx_rate; }
713 713

  
......
717 717
        my $not_assigned_amount = abs($bank_transaction->not_assigned_amount);
718 718
        $amount_for_payment = $not_assigned_amount;
719 719
        $amount_for_payment *= -1 if $invoice->amount < 0;
720
      } elsif ($invoice->get_exchangerate > $fx_rate) {
720
      } elsif ($invoice->get_exchangerate >= $fx_rate) {
721 721
        # if fx_gain do nothing, because gain
722 722
        # bla bla
723 723
      } else {

Auch abrufbar als: Unified diff