Revision 504fcaf1
Von Kivitendo Admin vor mehr als 8 Jahren hinzugefügt
SL/Controller/Buchungsgruppen.pm | ||
---|---|---|
35 | 35 |
|
36 | 36 |
$::form->header; |
37 | 37 |
$self->render('buchungsgruppen/list', |
38 |
title => t8('Buchungsgruppen'),
|
|
38 |
title => t8('Booking groups'),
|
|
39 | 39 |
BUCHUNGSGRUPPEN => $buchungsgruppen, |
40 | 40 |
CHARTLIST => \%chartlist, |
41 | 41 |
TAXZONES => $taxzones); |
... | ... | |
45 | 45 |
my ($self) = @_; |
46 | 46 |
|
47 | 47 |
$self->config(SL::DB::Buchungsgruppe->new()); |
48 |
$self->show_form(title => t8('Add Buchungsgruppe'));
|
|
48 |
$self->show_form(title => t8('Add booking group'));
|
|
49 | 49 |
} |
50 | 50 |
|
51 | 51 |
sub show_form { |
... | ... | |
63 | 63 |
# orphaned method, where an IF-ELSE statement toggles between L.select_tag |
64 | 64 |
# and text. |
65 | 65 |
|
66 |
$self->show_form(title => t8('Edit Buchungsgruppe'),
|
|
66 |
$self->show_form(title => t8('Edit booking group'),
|
|
67 | 67 |
CHARTLIST => SL::DB::TaxzoneChart->get_all_accounts_by_buchungsgruppen_id($self->config->id)); |
68 | 68 |
} |
69 | 69 |
|
... | ... | |
90 | 90 |
my $taxzone_charts = SL::DB::Manager::TaxzoneChart->get_all(where => [ buchungsgruppen_id => $self->config->id ]); |
91 | 91 |
foreach my $taxzonechart ( @{$taxzone_charts} ) { $taxzonechart->delete }; |
92 | 92 |
$self->config->delete(); |
93 |
flash_later('info', $::locale->text('The buchungsgruppe has been deleted.'));
|
|
94 |
}) || flash_later('error', $::locale->text('The buchungsgruppe is in use and cannot be deleted.'));
|
|
93 |
flash_later('info', $::locale->text('The booking group has been deleted.'));
|
|
94 |
}) || flash_later('error', $::locale->text('The booking group is in use and cannot be deleted.'));
|
|
95 | 95 |
|
96 | 96 |
$self->redirect_to(action => 'list'); |
97 | 97 |
|
... | ... | |
173 | 173 |
# die with rollback of taxzone save if saving of any of the taxzone_charts fails |
174 | 174 |
# only show the $db->error if we haven't already identified the likely error ourselves |
175 | 175 |
|
176 |
flash_later('info', $is_new ? t8('The Buchungsgruppe has been created.') : t8('The Buchungsgruppe has been saved.'));
|
|
176 |
flash_later('info', $is_new ? t8('The booking group has been created.') : t8('The booking group has been saved.'));
|
|
177 | 177 |
$self->redirect_to(action => 'list'); |
178 | 178 |
} |
179 | 179 |
|
Auch abrufbar als: Unified diff
Übersetzung für Buchungsgruppe -> Booking group