add skip_dcontext_suffix to skip CDRs with dcontext ending in a definable string...
[freeside.git] / FS / FS / cdr_termination.pm
index e0cde6e..0209f0d 100644 (file)
@@ -51,6 +51,9 @@ rated_price
 
 status
 
+=item svcnum
+
+svc_phone record associated with this transaction, if there is one.
 
 =back
 
@@ -116,8 +119,8 @@ sub check {
     || $self->ut_foreign_key('acctid', 'cdr', 'acctid')
     #|| $self->ut_foreign_key('termpart', 'part_termination', 'termpart')
     || $self->ut_number('termpart')
-    || $self->ut_float('rated_price')
-    || $self->ut_enum('status', [ '', 'done' ] ) # , 'skipped' ] )
+    || $self->ut_floatn('rated_price')
+    || $self->ut_enum('status', [ '', 'processing-tiered', 'done' ] ) # , 'skipped' ] )
   ;
   return $error if $error;