Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision abafb475

Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt

  • ID abafb475d9742e3a6c28427477235c923b21eeef
  • Vorgänger 7bacc2aa
  • Nachfolger 51aa7d3c

Auftrags-Controller: Speichern und schließen, …

… was einen zurück zur voherigen Ansicht bringt

Unterschiede anzeigen:

SL/Controller/Order.pm
197 197
           : '';
198 198
  flash_later('info', $text);
199 199

  
200
  my @redirect_params = (
201
    action => 'edit',
202
    type   => $self->type,
203
    id     => $self->order->id,
204
  );
200
  my @redirect_params;
201
  if ($::form->{back_to_caller}) {
202
    @redirect_params = $::form->{callback} ? ($::form->{callback})
203
                                           : (controller => 'LoginScreen', action => 'user_login');
204

  
205
  } else {
206
    @redirect_params = (
207
      action   => 'edit',
208
      type     => $self->type,
209
      id       => $self->order->id,
210
      callback => $::form->{callback},
211
    );
212
  }
205 213

  
206 214
  $self->redirect_to(@redirect_params);
207 215
}
......
2055 2063
          ],
2056 2064
          disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') : undef,
2057 2065
        ],
2066
        action => [
2067
          t8('Save and Close'),
2068
          call      => [ 'kivi.Order.save', 'save', $::instance_conf->get_order_warn_duplicate_parts,
2069
                                                    $::instance_conf->get_order_warn_no_deliverydate,
2070
                                                    1
2071
          ],
2072
          checks    => [ 'kivi.Order.check_save_active_periodic_invoices', ['kivi.validate_form','#order_form'],
2073
                         @req_trans_cost_art, @req_cusordnumber,
2074
          ],
2075
          disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') : undef,
2076
        ],
2058 2077
        action => [
2059 2078
          t8('Save as new'),
2060 2079
          call      => [ 'kivi.Order.save', 'save_as_new', $::instance_conf->get_order_warn_duplicate_parts ],

Auch abrufbar als: Unified diff