bundle bill linked packages into top line total when desired #5724
[freeside.git] / FS / FS / Mason.pm
index cce2dbf..ac11026 100644 (file)
@@ -185,6 +185,8 @@ Initializes the Mason environment, loads all Freeside and RT libraries, etc.
   use FS::part_pkg_taxoverride;
   use FS::part_pkg_taxrate;
   use FS::tax_rate;
+  use FS::part_pkg_report_option;
+  # Sammath Naur
 
   if ( %%%RT_ENABLED%%% ) {
     eval '
@@ -384,6 +386,9 @@ sub mason_interps {
                         ${$_[0]} = "'". ${$_[0]}. "'";
                       }
                     },
+    compiler     => HTML::Mason::Compiler::ToObject->new(
+                      allow_globals        => [qw(%session)],
+                    ),
   );
 
   my $rt_interp = new HTML::Mason::Interp (