Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5427e094

Von Bernd Bleßmann vor fast 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
941 941
  $main::lxdebug->leave_sub();
942 942
}
943 943

  
944
sub post_as_new {
945
  $main::lxdebug->enter_sub();
946

  
947
  my $form     = $main::form;
948
  my %myconfig = %main::myconfig;
949

  
950
  $main::auth->assert('ap_transactions');
951

  
952
  $form->{postasnew} = 1;
953
  # saving the history
954
  if(!exists $form->{addition} && $form->{id} ne "") {
955
    # does this work? post_as_new for ap doesn't immediately save the
956
    # invoice, because the invnumber has to be entered by hand.
957
    # And the value of $form->{postasnew} isn't checked when calling post
958
    $form->{snumbers}  = qq|invnumber_| . $form->{invnumber};
959
    $form->{addition}  = "POSTED AS NEW";
960
    $form->{what_done} = "invoice";
961
    $form->save_history;
962
  }
963
  # /saving the history
964
  &post;
965

  
966
  $main::lxdebug->leave_sub();
967
}
968

  
969 944
sub use_as_new {
970 945
  $main::lxdebug->enter_sub();
971 946

  
bin/mozilla/ar.pl
858 858
  $main::lxdebug->leave_sub();
859 859
}
860 860

  
861
sub post_as_new {
862
  $main::lxdebug->enter_sub();
863

  
864
  $main::auth->assert('ar_transactions');
865

  
866
  my $form     = $main::form;
867
  my %myconfig = %main::myconfig;
868

  
869
  $form->{postasnew} = 1;
870
  # saving the history
871
  if(!exists $form->{addition} && $form->{id} ne "") {
872
    $form->{snumbers}  = qq|invnumber_| . $form->{invnumber};
873
    $form->{what_done} = "invoice";
874
    $form->{addition}  = "POSTED AS NEW";
875
    $form->save_history;
876
  }
877
  # /saving the history
878
  &post;
879

  
880
  $main::lxdebug->leave_sub();
881
}
882

  
883 861
sub use_as_new {
884 862
  $main::lxdebug->enter_sub();
885 863

  
bin/mozilla/gl.pl
1507 1507
  $main::lxdebug->leave_sub();
1508 1508
}
1509 1509

  
1510
sub post_as_new {
1511
  $main::lxdebug->enter_sub();
1512

  
1513
  $main::auth->assert('gl_transactions');
1514

  
1515
  my $form     = $main::form;
1516

  
1517
  $form->{id} = 0;
1518
  &add;
1519
  $main::lxdebug->leave_sub();
1520

  
1521
}
1522

  
1523 1510
sub storno {
1524 1511
  $main::lxdebug->enter_sub();
1525 1512

  
bin/mozilla/io.pl
1700 1700
  $main::lxdebug->leave_sub();
1701 1701
}
1702 1702

  
1703
sub post_as_new {
1704
  $main::lxdebug->enter_sub();
1705

  
1706
  my $form     = $main::form;
1707

  
1708
  _check_io_auth();
1709

  
1710
  $form->{postasnew} = 1;
1711
  map { delete $form->{$_} } qw(printed emailed queued);
1712

  
1713
  &post;
1714

  
1715
  $main::lxdebug->leave_sub();
1716
}
1717

  
1718 1703
sub relink_accounts {
1719 1704
  $main::lxdebug->enter_sub();
1720 1705

  

Auch abrufbar als: Unified diff