Consolidation and extended test runs
[kivitendo-erp.git] / t / db_helper / acts_as_list.t
index a91724c..482966e 100644 (file)
@@ -30,7 +30,11 @@ my ($customer, $taxzone, $status, $type, $r_spec, @items);
 
 
 sub init {
-  $taxzone  = SL::DB::Manager::TaxZone->find_by( description => 'Inland') || croak "No taxzone";
+  if ($::lx_office_conf{system}->{default_manager} eq "swiss") {
+    $taxzone  = SL::DB::Manager::TaxZone->find_by( description => 'Schweiz') || croak "No taxzone";
+  } else {
+    $taxzone  = SL::DB::Manager::TaxZone->find_by( description => 'Inland')  || croak "No taxzone";
+  }
   $customer = SL::DB::Customer->new(name => 'Test Customer', currency_id => $::instance_conf->get_currency_id, taxzone_id => $taxzone->id)->save;
   $status   = SL::DB::Manager::RequirementSpecStatus->find_by(name => '', description => '') ||
               SL::DB::RequirementSpecStatus->new(name => '', description => '', position => 0)->save;