[freeside-commits] branch master updated. 9ad0cdfb307e346add9e3496cf3cbdc1eee4e7d8

Ivan Kohler ivan at freeside.biz
Tue Feb 12 14:35:12 PST 2019


The branch, master has been updated
       via  9ad0cdfb307e346add9e3496cf3cbdc1eee4e7d8 (commit)
      from  c29b4cb1eb515e29938af0b8da69ea8cb0f662e6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9ad0cdfb307e346add9e3496cf3cbdc1eee4e7d8
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Feb 12 14:35:11 2019 -0800

    save skip reason for CDR, RT#81480

diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index 290c89daf..fc22d6c4f 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -5660,6 +5660,9 @@ sub tables_hashref {
         #NULL, done (or something)
         'freesidestatus', 'varchar',   'NULL',     32,   '', '', 
 
+        #additional status info (i.e. reason for "skipped" freesidestatus)
+        'freesidestatustext', 'text',  'NULL',     '',   '', '',
+
         #NULL, done (or something)
         'freesiderewritestatus', 'varchar',   'NULL',     32,   '', '', 
 
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index 5a398ceaa..aa1c4067f 100644
--- a/FS/FS/cdr.pm
+++ b/FS/FS/cdr.pm
@@ -518,6 +518,7 @@ sub set_status_and_rated_price {
   } else {
 
     $self->freesidestatus($status);
+    $self->freesidestatustext($opt{'statustext'}) if exists($opt{'statustext'});
     $self->rated_price($rated_price);
     $self->$_($opt{$_})
       foreach grep exists($opt{$_}), map "rated_$_",
@@ -681,6 +682,7 @@ sub rate_prefix {
     return $self->set_status_and_rated_price( 'skipped',
                                               0,
                                               $opt{'svcnum'},
+                                              'statustext' => $reason,
                                             );
   }
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Schema.pm | 3 +++
 FS/FS/cdr.pm    | 2 ++
 2 files changed, 5 insertions(+)




More information about the freeside-commits mailing list