Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5a71d822

Von Jan Büren vor 11 Monaten hinzugefügt

  • ID 5a71d822ded33e80a0152fd7b254fe2c0b561388
  • Vorgänger 15b0ea3d
  • Nachfolger 1ee9865b

Unscharfes Skonto in Vorschlagsliste bis 20 Cent erlauben

Unterschiede anzeigen:

SL/Controller/BankTransaction.pm
671 671
      } else {
672 672
        $payment_type = 'without_skonto';
673 673
      }
674

  
675
      if ($payment_type eq 'free_skonto') {
674
      # hack payment type use free_skonto for with_fuzzy_skonto
675
      if ($payment_type eq 'with_fuzzy_skonto_pt') {
676
        $free_skonto_amount = abs($invoice->open_amount - abs($bank_transaction->not_assigned_amount));
677
        die "Invalid state for fuzzy skonto amount" unless $free_skonto_amount > 0;
678
        $payment_type = 'free_skonto';  # we have a valid free_skonto amount, therefore go ...
679
      } elsif ($payment_type eq 'free_skonto') {
676 680
        # parse user input > 0
677 681
        if ($::form->parse_amount(\%::myconfig, $::form->{"free_skonto_amount"}->{"$bt_id"}{$invoice->id}) > 0) {
678 682
          $free_skonto_amount = $::form->parse_amount(\%::myconfig, $::form->{"free_skonto_amount"}->{"$bt_id"}{$invoice->id});

Auch abrufbar als: Unified diff