Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 525c820d

Von Sven Schöling vor etwa 13 Jahren hinzugefügt

  • ID 525c820d6b13326ad4cd796ddb064bca7651d5eb
  • Vorgänger 0d4dc351
  • Nachfolger d92c7b01

Percent Attributhelper hat sich mittlerweile geändert.

Unterschiede anzeigen:

t/helper/attr.t
35 35
$o->reqdate(DateTime->new(year => 2010, month => 4, day => 12));
36 36
is($o->reqdate_as_date, '12.04.2010');
37 37

  
38
is($o->marge_percent_as_percent('40'), '40');
38
is($o->marge_percent_as_percent('40'), '40,00');
39 39
is($o->marge_percent, 0.40);
40
is($o->marge_percent_as_percent, '40');
40
is($o->marge_percent_as_percent, '40,00');
41 41
is($o->marge_percent_as_percent('22,4'), '22,40');
42 42
is($o->marge_percent, 0.224);
43
is($o->marge_percent_as_percent, '22');
43
is($o->marge_percent_as_percent, '22,40');
44 44
is($o->marge_percent(0.231), 0.231);
45
is($o->marge_percent_as_percent, '23');
45
is($o->marge_percent_as_percent, '23,10');
46 46

  
47 47
# overloaded attr: invoice taxamount
48 48
my $i = new_ok 'SL::DB::Invoice';

Auch abrufbar als: Unified diff