[freeside-commits] branch FREESIDE_4_BRANCH updated. 24c2d0b0530f4ffc09ca3a474aa756d3fffda499

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


The branch, FREESIDE_4_BRANCH has been updated
       via  24c2d0b0530f4ffc09ca3a474aa756d3fffda499 (commit)
      from  c2d7c1030acaf3b5ef8c1e14559b56f48fd25e28 (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 24c2d0b0530f4ffc09ca3a474aa756d3fffda499
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Feb 12 14:35:14 2019 -0800

    save skip reason for CDR, RT#81480

diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index b9df65062..a376dd9b4 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -5599,6 +5599,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 57cbbb216..37cb30d9a 100644
--- a/FS/FS/cdr.pm
+++ b/FS/FS/cdr.pm
@@ -519,6 +519,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_$_",
@@ -682,6 +683,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