Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 064d15bb

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

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

Standardstundensatz in Tabelle defaults speichern, nicht in Konfigurationsdatei

Unterschiede anzeigen:

SL/Controller/CustomerVendor.pm
$self->{cv}->taxincluded_checked(undef);
}
$self->{cv}->hourly_rate($::lx_office_conf{'features/customer'}->{default_hourly_rate}) if $self->is_customer && !$self->{cv}->hourly_rate;
$self->{cv}->hourly_rate($::instance_conf->get_customer_hourly_rate) if $self->is_customer && !$self->{cv}->hourly_rate;
foreach my $cvar (@{$self->{cv}->cvars_by_config()}) {
my $value = $::form->{cv_cvars}->{$cvar->config->name};
SL/DB/MetaSetup/Default.pm
coa => { type => 'text' },
company => { type => 'text' },
currency_id => { type => 'integer', not_null => 1 },
customer_hourly_rate => { type => 'numeric', precision => 2, scale => 8 },
customernumber => { type => 'text' },
datev_check_on_ap_transaction => { type => 'boolean', default => 'true' },
datev_check_on_ar_transaction => { type => 'boolean', default => 'true' },
config/kivitendo.conf.default
# and "en" (English, not perfect) are available.
language = de
[features]
[features/customer]
# Default for the 'hourly rate' input in the customer master data
# dialog.
default_hourly_rate = 100
[paths]
# path to temporary files (must be writeable by the web server)
userspath = users
sql/Pg-upgrade2/defaults_customer_hourly_rate.sql
-- @tag: defaults_customer_hourly_rate
-- @description: defaults_customer_hourly_rate
-- @depends: requirement_specs
ALTER TABLE defaults ADD COLUMN customer_hourly_rate NUMERIC(8, 2);
UPDATE defaults SET customer_hourly_rate = 100.0;

Auch abrufbar als: Unified diff