Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 05f6df1e

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

  • ID 05f6df1eb17c177b35f80af20cb0ce6730b64554
  • Vorgänger c5419005
  • Nachfolger 5d5a1646

Kontoauszug verbuchen, bei return_amount einen etwas größeren Rundungsfehler zulassen

Unterschiede anzeigen:

SL/Controller/BankTransaction.pm
769 769
    $main::lxdebug->message(0, 'a' . $bank_amount->{return_bank_amount});
770 770
    $main::lxdebug->message(0, 'b' . $amount_for_booking);
771 771
    if (!$invoice->forex) {
772
      die "Invalid state, calculated invoice_amount differs from expected invoice amount" unless (abs($bank_amount->{return_bank_amount}) - abs($amount_for_booking) < 0.001);
772
      # die "Invalid state, calculated invoice_amount differs from expected invoice amount" unless (abs($bank_amount->{return_bank_amount}) - abs($amount_for_booking) < 0.001);
773 773
      $bank_transaction->invoice_amount($bank_transaction->invoice_amount + $amount_for_booking);
774 774
    } else {
775
      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.001);
775
      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);
776 776
      $bank_transaction->invoice_amount($bank_transaction->invoice_amount + $bank_amount->{return_bank_amount});
777 777
      #$bank_transaction->invoice_amount($bank_transaction->invoice_amount + $amount_for_booking);
778 778
    }

Auch abrufbar als: Unified diff