1 package SL::Controller::Customer;
4 use parent qw(SL::Controller::Base);
10 __PACKAGE__->run_before(sub { $::auth->assert('customer_vendor_edit') });
12 sub action_get_hourly_rate {
13 my ($self, %params) = @_;
16 $customer = SL::DB::Customer->new(id => $::form->{id})->load if $::form->{id};
21 hourly_rate => $customer->hourly_rate * 1,
22 hourly_rate_formatted => $::form->format_amount(\%::myconfig, $customer->hourly_rate, 2),
26 $self->render(\to_json($data), { type => 'json' });