use SL::Helper::PrintOptions;
use SL::Helper::ShippedQty;
use SL::Helper::UserPreferences::PositionsScrollbar;
+use SL::Helper::UserPreferences::UpdatePositions;
use SL::Controller::Helper::GetModels;
use Rose::Object::MakeMethods::Generic
(
scalar => [ qw(item_ids_to_delete) ],
- 'scalar --get_set_init' => [ qw(order valid_types type cv p multi_items_models all_price_factors search_cvpartnumber) ],
+ 'scalar --get_set_init' => [ qw(order valid_types type cv p multi_items_models all_price_factors search_cvpartnumber show_update_button) ],
);
TYPE => $self->type,
ALL_PRICE_FACTORS => $self->all_price_factors,
SEARCH_CVPARTNUMBER => $self->search_cvpartnumber,
+ SHOW_UPDATE_BUTTON => $self->show_update_button,
);
$self->js
TYPE => $self->type,
ALL_PRICE_FACTORS => $self->all_price_factors,
SEARCH_CVPARTNUMBER => $self->search_cvpartnumber,
+ SHOW_UPDATE_BUTTON => $self->show_update_button,
);
$self->js
->append('#row_table_id', $row_as_html);
TYPE => $self->type,
ALL_PRICE_FACTORS => $self->all_price_factors,
SEARCH_CVPARTNUMBER => $self->search_cvpartnumber,
+ SHOW_UPDATE_BUTTON => $self->show_update_button,
);
$self->js->append('#row_table_id', $row_as_html);
return $search_cvpartnumber;
}
+sub init_show_update_button {
+ my ($self) = @_;
+
+ !!SL::Helper::UserPreferences::UpdatePositions->new()->get_show_update_button();
+}
+
sub init_p {
SL::Presenter->get;
}