Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE...
authorIvan Kohler <ivan@freeside.biz>
Sun, 19 Oct 2014 19:19:08 +0000 (12:19 -0700)
committerIvan Kohler <ivan@freeside.biz>
Sun, 19 Oct 2014 19:19:08 +0000 (12:19 -0700)
FS/FS/cdr/zintel.pm
FS/FS/svc_Common.pm
FS/FS/tax_rate.pm

index 1d2236c..eb08038 100644 (file)
@@ -16,7 +16,17 @@ use Date::Parse;
 
        'accountcode',  #customer
        'src',          #anumber
-       'dst',          #bnumber
+                sub { my ($cdr, $dst) = @_; # Handling cosolidated local calls in the CDR formats
+
+                       my $src = $cdr->src;
+
+                       if ($dst =~ /^64\/U$/) {
+                       $cdr->set('dst', $src);
+                       } else {
+                       $cdr->set('dst', $dst);
+                       }
+                       }, #bnumber
+
                  sub { my ($cdr, $calldate) = @_;
                         $cdr->set('calldate', $calldate);
 
index 659255e..9c25922 100644 (file)
@@ -807,6 +807,9 @@ If there is an error, returns the error, otherwise returns false.
 =cut
 
 sub set_auto_inventory {
+  # don't try to do this during an upgrade
+  return '' if $FS::CurrentUser::upgrade_hack;
+
   my $self = shift;
   my $old = @_ ? shift : '';
 
index 78917a3..9f07f36 100644 (file)
@@ -435,7 +435,9 @@ sub taxline {
 
   my $maxtype = $self->maxtype || 0;
   if ($maxtype != 0 && $maxtype != 1 
-      && $maxtype != 14 && $maxtype != 15) {
+      && $maxtype != 14 && $maxtype != 15
+      && $maxtype != 18 # sigh
+    ) {
     return $self->_fatal_or_null( 'tax with "'.
                                     $self->maxtype_name. '" threshold'
                                 );