Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision cfc18d35

Von Bernd Bleßmann vor fast 3 Jahren hinzugefügt

  • ID cfc18d35f154b3504fca6e84c98e438b40d109a3
  • Vorgänger f850f64b
  • Nachfolger 8d183681

Debitorebuchung: Redirects nach Buchen aufgeräumt …

- kein redirect nach redirect_header. redirect schickt ruft auch
redirect_header auf, prüft aber, ob schon ein header geschickt wurde
und bricht dann ab.
- Verbesserte Info-Ausgabe mit Rechnungsnummer.

Unterschiede anzeigen:

bin/mozilla/ar.pl
50 50
use SL::DB::Invoice;
51 51
use SL::DB::RecordTemplate;
52 52
use SL::DB::Tax;
53
use SL::Helper::Flash qw(flash);
53
use SL::Helper::Flash qw(flash flash_later);
54 54
use SL::Locale::String qw(t8);
55 55
use SL::Presenter::Tag;
56 56
use SL::Presenter::Chart;
......
817 817
  }
818 818
  # /saving the history
819 819

  
820
  if ($::instance_conf->get_ar_add_doc && $::instance_conf->get_doc_storage) {
821
    my $add_doc_url = build_std_url("script=ar.pl", 'action=edit', 'id=' . E($form->{id}));
822
    print $form->redirect_header($add_doc_url);
820
  if (!$inline) {
821
    my $msg = $locale->text("AR transaction '#1' posted (ID: #2)", $form->{invnumber}, $form->{id});
822
    if ($::instance_conf->get_ar_add_doc && $::instance_conf->get_doc_storage) {
823
      my $add_doc_url = build_std_url("script=ar.pl", 'action=edit', 'id=' . E($form->{id}));
824
      SL::Helper::Flash::flash_later('info', $msg);
825
      print $form->redirect_header($add_doc_url);
826
      $::dispatcher->end_request;
827

  
828
    } else {
829
      $form->redirect($msg);
830
    }
823 831
  }
824
  $form->redirect($locale->text('AR transaction posted.') . ' ' . $locale->text('ID') . ': ' . $form->{id}) unless $inline;
825 832

  
826 833
  $main::lxdebug->leave_sub();
827 834
}
locale/de/all
92 92
  'AR Transaction (abbreviation)' => 'D',
93 93
  'AR Transaction/AccTrans Item row names' => 'Namen der Rechnungs/Buchungszeilen',
94 94
  'AR Transactions'             => 'Debitorenbuchungen',
95
  'AR transaction posted.'      => 'Debitorenbuchung verbucht.',
95
  'AR transaction \'#1\' posted (ID: #2)' => 'Debitorenbuchung \'#1\' verbucht (Buchungsnummer: #2)',
96 96
  'AR transactions changeable'  => 'Änderbarkeit von Debitorenbuchungen',
97 97
  'ASSETS'                      => 'AKTIVA',
98 98
  'ATTENTION! If you enabled this feature you can not simply turn it off again without taking care that best_before fields are emptied in the database.' => 'ACHTUNG! Wenn Sie diese Einstellung aktivieren, dann können Sie sie später nicht ohne Weiteres deaktivieren, ohne dafür zu sorgen, dass die Felder der Mindeshaltbarkeitsdaten in der Datenbank leer gemacht werden.',
locale/en/all
92 92
  'AR Transaction (abbreviation)' => '',
93 93
  'AR Transaction/AccTrans Item row names' => '',
94 94
  'AR Transactions'             => 'Sales Transactions',
95
  'AR transaction posted.'      => '',
95
  'AR transaction \'#1\' posted (ID: #2)' => '',
96 96
  'AR transactions changeable'  => '',
97 97
  'ASSETS'                      => '',
98 98
  'ATTENTION! If you enabled this feature you can not simply turn it off again without taking care that best_before fields are emptied in the database.' => '',

Auch abrufbar als: Unified diff