Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 29795499

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

  • ID 29795499e0623f7ff7ea739ed3b61d66dad0e7c6
  • Vorgänger dec4d40f
  • Nachfolger 7a611f95

Verbesserungen am Tag Script.

Ausserdem Merge der Revisionen 5239 5259 5340 5341 5342 und 5343.

Unterschiede anzeigen:

SL/AM.pm
594 594
  $sth = $dbh->prepare($query);
595 595
  $sth->execute || $form->dberror($query);
596 596

  
597
  $form->{ALL};
598 597
  while (my $ref = $sth->fetchrow_hashref(NAME_lc)) {
599 598
    push @{ $form->{ALL} }, $ref;
600 599
  }
......
690 689
  $sth = $dbh->prepare($query);
691 690
  $sth->execute || $form->dberror($query);
692 691

  
693
  $form->{ALL};
694 692
  while (my $ref = $sth->fetchrow_hashref(NAME_lc)) {
695 693
    push @{ $form->{ALL} }, $ref;
696 694
  }
......
962 960
  $main::lxdebug->enter_sub();
963 961

  
964 962
  my ($self, $myconfig, $form) = @_;
963
  my $query;
965 964

  
966 965
  # connect to database
967 966
  my $dbh = $form->dbconnect($myconfig);
968 967

  
969 968
  if ($form->{id}) {
970
    my $query =
969
    $query =
971 970
      qq|SELECT description, inventory_accno_id,
972 971
         (SELECT accno FROM chart WHERE id = inventory_accno_id) AS inventory_accno,
973 972
         income_accno_id_0,
......
997 996

  
998 997
    $sth->finish;
999 998

  
1000
    my $query =
999
    $query =
1001 1000
      qq|SELECT count(id) = 0 AS orphaned
1002 1001
         FROM parts
1003 1002
         WHERE buchungsgruppen_id = ?|;
......
1538 1537
  # save first currency in myconfig
1539 1538
  $form->{currency} = substr($form->{curr}, 0, 3);
1540 1539

  
1541
  my $myconfig = new User "$memberfile", "$form->{login}";
1540
  $myconfig = new User "$memberfile", "$form->{login}";
1542 1541

  
1543 1542
  foreach my $item (keys %$form) {
1544 1543
    $myconfig->{$item} = $form->{$item};

Auch abrufbar als: Unified diff