Pflichtenhefte: Stundensatz in Kundenstammdaten bearbeiten können
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 8 Aug 2013 09:36:57 +0000 (11:36 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 1 Apr 2014 11:09:10 +0000 (13:09 +0200)
SL/Controller/CustomerVendor.pm

index 5ea0389..f59fd07 100644 (file)
@@ -69,6 +69,7 @@ sub action_add {
   my ($self) = @_;
 
   $self->_pre_render();
+  $self->{cv}->assign_attributes(hourly_rate => $::instance_conf->get_customer_hourly_rate) if $self->{cv}->is_customer;
   $self->render(
     'customer_vendor/form',
     title => ($self->is_vendor() ? $::locale->text('Add Vendor') : $::locale->text('Add Customer')),