should fix
authorIvan Kohler <ivan@freeside.biz>
Tue, 9 Oct 2012 19:59:51 +0000 (12:59 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 9 Oct 2012 19:59:51 +0000 (12:59 -0700)
  Argument "" isn't numeric in numeric ne (!=) at /usr/local/share/perl/5.10.1/FS/Template_Mixin.pm line 2254.

FS/FS/Template_Mixin.pm

index d35fd55..146e95f 100644 (file)
@@ -2251,7 +2251,8 @@ sub _items_cust_bill_pkg {
                          $cust_pkg->h_labels_short($self->_date, undef, 'I')
               unless $cust_bill_pkg->pkgpart_override; #don't redisplay services
 
-            if ( $cust_pkg->locationnum != $cust_main->ship_locationnum  ) {
+            if ( ! $cust_pkg->locationnum or
+                   $cust_pkg->locationnum != $cust_main->ship_locationnum  ) {
               my $loc = $cust_pkg->location_label;
               $loc = substr($loc, 0, $maxlength). '...'
                 if $format eq 'latex' && length($loc) > $maxlength;