Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 69d2a6cb

Von Tamino Steinert vor etwa 1 Jahr hinzugefügt

  • ID 69d2a6cbd6c15dd11ea0dd44a8feaa5863604a93
  • Vorgänger 310df8d8
  • Nachfolger 1e3e9c0c

Controller::Order: Nutze type_data Text fürs Speichern

Unterschiede anzeigen:

SL/Controller/Order.pm
234 234

  
235 235
  $self->save();
236 236

  
237
  my $text = $self->type eq SALES_ORDER_INTAKE_TYPE()         ? $::locale->text('The order intake has been saved')
238
           : $self->type eq SALES_ORDER_TYPE()                ? $::locale->text('The order confirmation has been saved')
239
           : $self->type eq PURCHASE_ORDER_TYPE()             ? $::locale->text('The order has been saved')
240
           : $self->type eq SALES_QUOTATION_TYPE()            ? $::locale->text('The quotation has been saved')
241
           : $self->type eq REQUEST_QUOTATION_TYPE()          ? $::locale->text('The rfq has been saved')
242
           : $self->type eq PURCHASE_QUOTATION_INTAKE_TYPE()  ? $::locale->text('The quotation intake has been saved')
243
           : '';
244
  flash_later('info', $text);
237
  flash_later('info', $self->type_data->text('saved'));
245 238

  
246 239
  my @redirect_params;
247 240
  if ($::form->{back_to_caller}) {

Auch abrufbar als: Unified diff