1 package SL::Controller::Customer;
4 use parent qw(SL::Controller::Base);
9 sub action_get_hourly_rate {
10 my ($self, %params) = @_;
13 $customer = SL::DB::Customer->new(id => $::form->{id})->load if $::form->{id};
18 hourly_rate => $customer->hourly_rate * 1,
19 hourly_rate_formatted => $::form->format_amount(\%::myconfig, $customer->hourly_rate, 2),
23 $self->render(\to_json($data), { type => 'json' });