X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2Fhelper%2Fattr.t;h=ef49d8e74fa073d60a92918ef1b00bf82b308b59;hb=388a2ff5471adc27084f77e60fe154f25790dc9e;hp=4a4576fa83d9dfc8bab95c42b2683eeac14e25c7;hpb=0d4dc3512d2d586fc1500ec2409a83930e272092;p=kivitendo-erp.git diff --git a/t/helper/attr.t b/t/helper/attr.t index 4a4576fa8..ef49d8e74 100644 --- a/t/helper/attr.t +++ b/t/helper/attr.t @@ -35,14 +35,14 @@ is($o->reqdate_as_date, '11.12.2007'); $o->reqdate(DateTime->new(year => 2010, month => 4, day => 12)); is($o->reqdate_as_date, '12.04.2010'); -is($o->marge_percent_as_percent('40'), '40'); +is($o->marge_percent_as_percent('40'), '40,00'); is($o->marge_percent, 0.40); -is($o->marge_percent_as_percent, '40'); +is($o->marge_percent_as_percent, '40,00'); is($o->marge_percent_as_percent('22,4'), '22,40'); is($o->marge_percent, 0.224); -is($o->marge_percent_as_percent, '22'); +is($o->marge_percent_as_percent, '22,40'); is($o->marge_percent(0.231), 0.231); -is($o->marge_percent_as_percent, '23'); +is($o->marge_percent_as_percent, '23,10'); # overloaded attr: invoice taxamount my $i = new_ok 'SL::DB::Invoice';