use Rose::Object::MakeMethods::Generic (
scalar => [ qw(config) ],
+ 'scalar --get_set_init' => [ qw(defaults) ],
);
__PACKAGE__->run_before('check_auth');
sub action_edit {
my ($self) = @_;
- $self->show_form(title => t8('Edit custom variable'),
+ $self->show_form(title => t8('Edit taxzone'),
CHARTLIST => SL::DB::TaxzoneChart->get_all_accounts_by_taxzone_id($self->config->id));
}
}
$self->config->save;
+ $self->config->obsolete($::form->{"obsolete"});
#Save taxzone_charts for new taxzones:
if ($is_new) {
$self->redirect_to(action => 'list');
}
+#
+# initializers
+#
+
+sub init_defaults { SL::DB::Default->get };
+
1;