Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a6fc1f81

Von Kivitendo Admin vor mehr als 10 Jahren hinzugefügt

  • ID a6fc1f811ae96b82a5c83aa8d663a16ea8751637
  • Vorgänger d3801bc9
  • Nachfolger eabd6694

Steuerzone in price_tax_calculator.t angepasst

Unterschiede anzeigen:

t/db_helper/price_tax_calculator.t
18 18
use SL::DB::Part;
19 19
use SL::DB::Unit;
20 20

  
21
my ($customer, $currency_id, @parts, $buchungsgruppe, $buchungsgruppe7, $unit, $employee, $tax, $tax7);
21
my ($customer, $currency_id, @parts, $buchungsgruppe, $buchungsgruppe7, $unit, $employee, $tax, $tax7, $taxzone);
22 22

  
23 23
sub reset_state {
24 24
  my %params = @_;
......
35 35
  $employee        = SL::DB::Manager::Employee->current                                                                    || croak "No employee";
36 36
  $tax             = SL::DB::Manager::Tax->find_by(taxkey => 3, rate => 0.19, %{ $params{tax} })                           || croak "No tax";
37 37
  $tax7            = SL::DB::Manager::Tax->find_by(taxkey => 2, rate => 0.07)                                              || croak "No tax for 7\%";
38
  $taxzone         = SL::DB::Manager::TaxZone->find_by( description => 'Inland')                                           || croak "No taxzone";
38 39

  
39 40
  $currency_id     = $::instance_conf->get_currency_id;
40 41

  
......
75 76
    employee_id => $employee->id,
76 77
    salesman_id => $employee->id,
77 78
    gldate      => DateTime->today_local->to_kivitendo,
78
    taxzone_id  => 0,
79
    taxzone_id  => $taxzone->id,
79 80
    transdate   => DateTime->today_local->to_kivitendo,
80 81
    invoice     => 1,
81 82
    type        => 'invoice',

Auch abrufbar als: Unified diff