Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9436f38b

Von Jan Büren vor mehr als 3 Jahren hinzugefügt

  • ID 9436f38b543946dd80a62b6c2c7987d9608ab380
  • Vorgänger a4bbdc71
  • Nachfolger 556aa69d

Testfall für BT: Punkte. Copy & Paste Fehler von a695c behoben

Unterschiede anzeigen:

t/bank/bank_transactions.t
1
use Test::More tests => 289;
1
use Test::More tests => 291;
2 2

  
3 3
use strict;
4 4

  
......
541 541
  is($ar_transaction->paid , '100.00000' , "$testname: 'salesinv partial payment' was partially paid");
542 542
  is($bt->invoice_amount   , '100.00000' , "$testname: bt invoice amount was assigned partially paid amount");
543 543

  
544
  # addon test partial payment full point match
545
  my $bt2 = create_bank_transaction(record        => $ar_transaction,
546
                                    bank_chart_id => $bank->id,
547
                                    transdate     => $dt,
548
                                    valutadate    => $dt,
549
                                    amount        => 19
550
                                   ) or die "Couldn't create bank_transaction";
551

  
552
  my ($agreement, $rule_matches) = $bt2->get_agreement_with_invoice($ar_transaction);
553
  is($agreement, 15, "points for exact partial payment ok");
554
  is($rule_matches, 'remote_account_number(3) exact_open_amount(4) depositor_matches(2) remote_name(2) payment_within_30_days(1) datebonus0(3) ', "rules_matches for exact partial payment ok");
544 555
};
545 556

  
546 557
sub test_full_workflow_ar_multiple_inv_skonto_reconciliate_and_undo {

Auch abrufbar als: Unified diff