]> wagnertech.de Git - mfinanz.git/commitdiff
Bankerweiterung: bei Zahlungsartauswahl auf Skonto prüfen
authorG. Richardson <information@kivitendo-premium.de>
Wed, 6 May 2015 15:47:40 +0000 (17:47 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Wed, 6 May 2015 15:47:40 +0000 (17:47 +0200)
SL/DB/Helper/Payment.pm

index baa23668ef71d8e66b202d042b1ff3bf5c4594f5..9ac3a67c38ec599ff5e0c9ddf2664f20035b8f2b 100644 (file)
@@ -551,6 +551,7 @@ sub get_payment_select_options_for_bank_transaction {
 
   my @options;
   if ( $open_amount &&                   # invoice amount not 0
+       $self->skonto_date &&             # check whether skonto applies
        abs(abs($self->amount_less_skonto) - abs($bt->amount)) < 0.01 &&
        $self->check_skonto_configuration) {
          if ( $self->within_skonto_period($bt->transdate) ) {