Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 678992ff

Von Sven Schöling vor etwa 6 Jahren hinzugefügt

  • ID 678992ffad65c5d10c52552792edee0a2a708bfd
  • Vorgänger b6185e74
  • Nachfolger 5594e779

Form: verwaiste Funktionen entfernt

Unterschiede anzeigen:

SL/Form.pm
194 194
  return @variables;
195 195
}
196 196

  
197
sub debug {
198
  $main::lxdebug->enter_sub();
199

  
200
  my ($self) = @_;
201

  
202
  print "\n";
203

  
204
  map { print "$_ = $self->{$_}\n" } (sort keys %{$self});
205

  
206
  $main::lxdebug->leave_sub();
207
}
208

  
209
sub dumper {
210
  $main::lxdebug->enter_sub(2);
211

  
212
  my $self          = shift;
213
  my $password      = $self->{password};
214

  
215
  $self->{password} = 'X' x 8;
216

  
217
  local $Data::Dumper::Sortkeys = 1;
218
  my $output                    = Dumper($self);
219

  
220
  $self->{password} = $password;
221

  
222
  $main::lxdebug->leave_sub(2);
223

  
224
  return $output;
225
}
226

  
227 197
sub escape {
228 198
  my ($self, $str) = @_;
229 199

  
......
3615 3585

  
3616 3586
};
3617 3587

  
3618
sub layout {
3619
  my ($self) = @_;
3620
  $::lxdebug->enter_sub;
3621

  
3622
  my %style_to_script_map = (
3623
    v3  => 'v3',
3624
    neu => 'new',
3625
  );
3626

  
3627
  my $menu_script = $style_to_script_map{$::myconfig{menustyle}} || '';
3628

  
3629
  package main;
3630
  require "bin/mozilla/menu$menu_script.pl";
3631
  package Form;
3632
  require SL::Controller::FrameHeader;
3633

  
3634

  
3635
  my $layout = SL::Controller::FrameHeader->new->action_header . ::render();
3636

  
3637
  $::lxdebug->leave_sub;
3638
  return $layout;
3639
}
3640

  
3641 3588
sub calculate_tax {
3642 3589
  # this function calculates the net amount and tax for the lines in ar, ap and
3643 3590
  # gl and is used for update as well as post. When used with update the return

Auch abrufbar als: Unified diff