Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 064d15bb

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID 064d15bb6c59188be545d75e895689cdfea04ad6
  • Vorgänger 300dc618
  • Nachfolger 13a0130f

Standardstundensatz in Tabelle defaults speichern, nicht in Konfigurationsdatei

Unterschiede anzeigen:

SL/Controller/CustomerVendor.pm
641 641
    $self->{cv}->taxincluded_checked(undef);
642 642
  }
643 643

  
644
  $self->{cv}->hourly_rate($::lx_office_conf{'features/customer'}->{default_hourly_rate}) if $self->is_customer && !$self->{cv}->hourly_rate;
644
  $self->{cv}->hourly_rate($::instance_conf->get_customer_hourly_rate) if $self->is_customer && !$self->{cv}->hourly_rate;
645 645

  
646 646
  foreach my $cvar (@{$self->{cv}->cvars_by_config()}) {
647 647
    my $value = $::form->{cv_cvars}->{$cvar->config->name};
SL/DB/MetaSetup/Default.pm
28 28
  coa                                           => { type => 'text' },
29 29
  company                                       => { type => 'text' },
30 30
  currency_id                                   => { type => 'integer', not_null => 1 },
31
  customer_hourly_rate                          => { type => 'numeric', precision => 2, scale => 8 },
31 32
  customernumber                                => { type => 'text' },
32 33
  datev_check_on_ap_transaction                 => { type => 'boolean', default => 'true' },
33 34
  datev_check_on_ar_transaction                 => { type => 'boolean', default => 'true' },
config/kivitendo.conf.default
65 65
# and "en" (English, not perfect) are available.
66 66
language = de
67 67

  
68
[features]
69

  
70
[features/customer]
71
# Default for the 'hourly rate' input in the customer master data
72
# dialog.
73
default_hourly_rate = 100
74

  
75 68
[paths]
76 69
# path to temporary files (must be writeable by the web server)
77 70
userspath = users
sql/Pg-upgrade2/defaults_customer_hourly_rate.sql
1
-- @tag: defaults_customer_hourly_rate
2
-- @description: defaults_customer_hourly_rate
3
-- @depends: requirement_specs
4
ALTER TABLE defaults ADD COLUMN customer_hourly_rate NUMERIC(8, 2);
5
UPDATE defaults SET customer_hourly_rate = 100.0;

Auch abrufbar als: Unified diff