From: G. Richardson Date: Mon, 4 Aug 2014 10:09:09 +0000 (+0200) Subject: Steuerzone in price_tax_calculator.t angepasst X-Git-Tag: release-3.2.0beta~364 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a6fc1f811ae96b82a5c83aa8d663a16ea8751637;p=kivitendo-erp.git Steuerzone in price_tax_calculator.t angepasst --- diff --git a/t/db_helper/price_tax_calculator.t b/t/db_helper/price_tax_calculator.t index a80146d78..b374f5eba 100644 --- a/t/db_helper/price_tax_calculator.t +++ b/t/db_helper/price_tax_calculator.t @@ -18,7 +18,7 @@ use SL::DB::Invoice; use SL::DB::Part; use SL::DB::Unit; -my ($customer, $currency_id, @parts, $buchungsgruppe, $buchungsgruppe7, $unit, $employee, $tax, $tax7); +my ($customer, $currency_id, @parts, $buchungsgruppe, $buchungsgruppe7, $unit, $employee, $tax, $tax7, $taxzone); sub reset_state { my %params = @_; @@ -35,6 +35,7 @@ sub reset_state { $employee = SL::DB::Manager::Employee->current || croak "No employee"; $tax = SL::DB::Manager::Tax->find_by(taxkey => 3, rate => 0.19, %{ $params{tax} }) || croak "No tax"; $tax7 = SL::DB::Manager::Tax->find_by(taxkey => 2, rate => 0.07) || croak "No tax for 7\%"; + $taxzone = SL::DB::Manager::TaxZone->find_by( description => 'Inland') || croak "No taxzone"; $currency_id = $::instance_conf->get_currency_id; @@ -75,7 +76,7 @@ sub new_invoice { employee_id => $employee->id, salesman_id => $employee->id, gldate => DateTime->today_local->to_kivitendo, - taxzone_id => 0, + taxzone_id => $taxzone->id, transdate => DateTime->today_local->to_kivitendo, invoice => 1, type => 'invoice',