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/DB/BankTransaction.pm
79 79
    payment_within_30_days      => 1,
80 80
    remote_account_number       => 3,
81 81
    skonto_exact_amount         => 5,
82
    skonto_fuzzy_amount         => 3,
82 83
    wrong_sign                  => -4,
83 84
    sepa_export_item            => 5,
84 85
    batch_sepa_transaction      => 20,
......
150 151
    $agreement += $points{skonto_exact_amount};
151 152
    $rule_matches .= 'skonto_exact_amount(' . $points{'skonto_exact_amount'} . ') ';
152 153
    $invoice->{skonto_type} = 'with_skonto_pt';
154
  } elsif ( $invoice->skonto_date && abs(abs($invoice->amount_less_skonto) - abs($self->amount)) < 0.2) {
155
    $agreement += $points{skonto_fuzzy_amount};
156
    $rule_matches .= 'skonto_fuzzy_amount(' . $points{'skonto_fuzzy_amount'} . ') ';
157
    $invoice->{skonto_type} = 'with_fuzzy_skonto_pt';
153 158
  }
154 159

  
155 160
  #search invoice number in purpose

Auch abrufbar als: Unified diff