This commit was generated by cvs2svn to compensate for changes in r12472,
[freeside.git] / FS / FS / part_pkg / voip_cdr.pm
index ceda0c7..e74ed0e 100644 (file)
@@ -412,6 +412,8 @@ sub calc_usage {
       # at this point we officially Do Not Care about the rating method
       $charges += $cdr->rated_price;
       $formatter->append($cdr);
+      my $error = $cdr->set_status('done');
+      die $error if $error;
     }
   }