Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision eb65ad2e

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

  • ID eb65ad2e814cef87484ebe68186e3e04283fce7e
  • Vorgänger 5cd18042
  • Nachfolger 8b571728

Wechselkurs, Sicherheitscheck auf Rundungsdifferenz < 0.005

Unterschiede anzeigen:

SL/Controller/BankTransaction.pm
738 738
      # die "Invalid state, calculated invoice_amount differs from expected invoice amount" unless (abs($bank_amount->{return_bank_amount}) - abs($amount_for_booking) < 0.001);
739 739
      $bank_transaction->invoice_amount($bank_transaction->invoice_amount + $amount_for_booking);
740 740
    } else {
741
      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);
741
      die "Invalid state, calculated invoice_amount differs from expected invoice amount: $amount_for_booking <> " . $bank_amount->{return_bank_amount}
742
        unless $fx_book || (abs($bank_amount->{return_bank_amount}) - abs($amount_for_booking) < 0.005);
742 743
      $bank_transaction->invoice_amount($bank_transaction->invoice_amount + $bank_amount->{return_bank_amount});
743 744
      #$bank_transaction->invoice_amount($bank_transaction->invoice_amount + $amount_for_booking);
744 745
    }

Auch abrufbar als: Unified diff