Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 48508b25

Von Tamino Steinert vor 6 Monaten hinzugefügt

  • ID 48508b25dc9bfec9aac34bf8b0be3d783e51d596
  • Vorgänger d714c183
  • Nachfolger e68a2521

Speichern/Buchen und schließen zu Belegen hinzufügt

Versucht Callback aufzurufen oder geht zu Loginseite.

Unterschiede anzeigen:

bin/mozilla/is.pl
427 427
                    : $is_linked_bank_transaction               ? t8('This transaction is linked with a bank transaction. Please undo and redo the bank transaction booking if needed.')
428 428
                    :                                             undef,
429 429
        ],
430
        action => [
431
          t8('Post and Close'),
432
          submit   => [ '#form', { action => "post_and_close" } ],
433
          checks   => [ 'kivi.validate_form' ],
434
          confirm  => t8('The invoice is not linked with a sales delivery order. Post anyway?') x !!$warn_unlinked_delivery_order,
435
          disabled => !$may_edit_create                         ? t8('You must not change this invoice.')
436
                    : $form->{locked}                           ? t8('The billing period has already been locked.')
437
                    : $form->{storno}                           ? t8('A canceled invoice cannot be posted.')
438
                    : ($form->{id} && $change_never)            ? t8('Changing invoices has been disabled in the configuration.')
439
                    : ($form->{id} && $change_on_same_day_only) ? t8('Invoices can only be changed on the day they are posted.')
440
                    : $is_linked_bank_transaction               ? t8('This transaction is linked with a bank transaction. Please undo and redo the bank transaction booking if needed.')
441
                    :                                             undef,
442
        ],
430 443
        action => [
431 444
          t8('Post Payment'),
432 445
          submit   => [ '#form', { action => "post_payment" } ],
......
1245 1258
  $main::lxdebug->leave_sub();
1246 1259
}
1247 1260

  
1261
sub post_and_close {
1262
  $main::lxdebug->enter_sub();
1263
  my $locale   = $main::locale;
1264
  my $form = $::form;
1265

  
1266
  $form->{no_redirect_after_post} = 1;
1267
  &post();
1268

  
1269
  my $callback = $form->{callback}
1270
    || "controller.pl?action=LoginScreen/user_login";
1271
  my $msg = $form->{label} . " $form->{invnumber} " . $locale->text('posted!');
1272
  SL::Helper::Flash::flash_later('info', $msg);
1273
  print $form->redirect_header($callback);
1274
  $::dispatcher->end_request;
1275

  
1276
  $main::lxdebug->leave_sub();
1277
}
1278

  
1248 1279
sub print_and_post {
1249 1280
  $main::lxdebug->enter_sub();
1250 1281

  

Auch abrufbar als: Unified diff