Revision 4f29e52e
Von Jan Büren vor 12 Monaten hinzugefügt
| t/db_helper/payment.t | ||
|---|---|---|
| 
       is($invoice2->within_skonto_period(transdate => DateTime->now()->add(days => 1)), 1, "one day after invdate is skontoable");
 
   | 
||
| 
       is($invoice2->within_skonto_period(transdate => DateTime->now()->add(days => 4)), 1, "four days after invdate is skontoable");
 
   | 
||
| 
     | 
||
| 
       is($invoice2->within_skonto_period(transdate => DateTime->now()->add(days => 6)), ''); # not within skonto period
 
   | 
||
| 
       is($invoice2->within_skonto_period(transdate => DateTime->now()->add(days => 6)), '', 'not within skonto period');
 
   | 
||
| 
     | 
||
| 
     }
 
   | 
||
| 
     | 
||
Auch abrufbar als: Unified diff
Testfälle sauber benennen