use parent qw(SL::Controller::Base);
use SL::Helper::Flash;
-use SL::ClientJS;
use SL::Presenter;
use SL::Locale::String;
use SL::SessionFile::Random;
use Rose::Object::MakeMethods::Generic
(
- 'scalar --get_set_init' => [ qw(order valid_types type cv js p) ],
+ 'scalar --get_set_init' => [ qw(order valid_types type cv p) ],
);
if (scalar @{ $errors }) {
$self->js->flash('error', $_) foreach @{ $errors };
- return $self->js->render($self);
+ return $self->js->render();
}
flash_later('info', $::locale->text('The order has been saved'));
if (scalar @{ $errors }) {
$self->js->flash('error', $_) foreach @{ $errors };
- return $self->js->render($self);
+ return $self->js->render();
}
my $delivery_order = $self->order->convert_to_delivery_order($self->order);
->focus('#add_item_parts_id_name');
$self->_js_redisplay_amounts_and_taxes;
- $self->js->render($self);
+ $self->js->render();
}
sub action_recalc_amounts_and_taxes {
$self->_js_redisplay_linetotals;
$self->_js_redisplay_amounts_and_taxes;
- $self->js->render($self);
+ $self->js->render();
}
sub _js_redisplay_linetotals {
return $cv;
}
-sub init_js {
- SL::ClientJS->new;
-}
-
sub init_p {
SL::Presenter->get;
}