X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2Ft%2Fsuite%2F02-bill_customer.t;h=e3f6406f45bcfe852b5af9b07f587c458c7528c3;hb=19ba8ba34507ec889908271b7238bc58fce5dc80;hp=0afffaa701e508bfa3659e2bc861d1bd77f48f3b;hpb=90eaa5512c9cd3ff34b34c9e2426ff2fa39e27dd;p=freeside.git diff --git a/FS/t/suite/02-bill_customer.t b/FS/t/suite/02-bill_customer.t index 0afffaa70..e3f6406f4 100755 --- a/FS/t/suite/02-bill_customer.t +++ b/FS/t/suite/02-bill_customer.t @@ -23,8 +23,9 @@ ok($error eq '', "billed on $date") or diag($error); my $cust_bill = $return[0]; isa_ok($cust_bill, 'FS::cust_bill'); -# $60/month * (30 days - 19 days)/30 days = $42 -ok( $cust_bill->charged == 42.00, 'prorated first month correctly' ); +# Apr 1 - Mar 20 = 12 days +# 12/31 * $30 = 11.61 recurring, + 20.00 setup +ok( $cust_bill->charged == 31.61, 'prorated first month correctly' ); # the package bill date should now be 2016-04-01 my @lineitems = $cust_bill->cust_bill_pkg;