$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};
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' },
# 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
--- /dev/null
+-- @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;