Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5427e094

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

  • ID 5427e0941067c0b14cfa06b399d7b841fc543403
  • Vorgänger 0c0e2ee2
  • Nachfolger 18d543d0

ap/ar/gl/io.pl: nicht benutzte Routine post_as_new entfernt

Unterschiede anzeigen:

bin/mozilla/ap.pl
$main::lxdebug->leave_sub();
}
sub post_as_new {
$main::lxdebug->enter_sub();
my $form = $main::form;
my %myconfig = %main::myconfig;
$main::auth->assert('ap_transactions');
$form->{postasnew} = 1;
# saving the history
if(!exists $form->{addition} && $form->{id} ne "") {
# does this work? post_as_new for ap doesn't immediately save the
# invoice, because the invnumber has to be entered by hand.
# And the value of $form->{postasnew} isn't checked when calling post
$form->{snumbers} = qq|invnumber_| . $form->{invnumber};
$form->{addition} = "POSTED AS NEW";
$form->{what_done} = "invoice";
$form->save_history;
}
# /saving the history
&post;
$main::lxdebug->leave_sub();
}
sub use_as_new {
$main::lxdebug->enter_sub();

Auch abrufbar als: Unified diff