X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0b34e29fb04ad9ac9912f67b767f9f401700ca97..8e5b1f0e363dd22883e931006b8ac414bad9bbc5:/t/db_helper/acts_as_list.t diff --git a/t/db_helper/acts_as_list.t b/t/db_helper/acts_as_list.t index a91724cce..482966ede 100644 --- a/t/db_helper/acts_as_list.t +++ b/t/db_helper/acts_as_list.t @@ -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;