Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 408a65ca

Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt

  • ID 408a65ca75b941501bc630b144288dd466676248
  • Vorgänger 9a16d0be
  • Nachfolger 3740b503

Beim Buchen von Eingangsrechnungen den ausgewählten Bearbeiter honorieren und speichern. Bugfix für 640.

Unterschiede anzeigen:

SL/IR.pm
69 69
    $uid = substr($uid, 2, 75);
70 70

  
71 71
    $query = qq|INSERT INTO ap (invnumber, employee_id)
72
                VALUES ('$uid', '$form->{employee}')|;
72
                VALUES ('$uid', '$form->{employee_id}')|;
73 73
    $dbh->do($query) || $form->dberror($query);
74 74

  
75 75
    $query = qq|SELECT a.id FROM ap a
bin/mozilla/ir.pl
223 223
  $lxdebug->enter_sub();
224 224

  
225 225
  # set option selected
226
  foreach $item (qw(AP vendor currency department employee)) {
226
  foreach $item (qw(AP vendor currency department)) {
227 227
    $form->{"select$item"} =~ s/ selected//;
228 228
    $form->{"select$item"} =~
229 229
      s/option>\Q$form->{$item}\E/option selected>$form->{$item}/;
......
330 330
      <tr>
331 331
      <th align="right">| . $locale->text('Employee') . qq|</th>
332 332
      <td>| .
333
        NTI($cgi->popup_menu('-name' => 'employee', '-default' => $form->{"employee"},
333
        NTI($cgi->popup_menu('-name' => 'employee_id', '-default' => $form->{"employee_id"},
334 334
                             '-values' => \@values, '-labels' => \%labels)) . qq|
335 335
      </td>
336 336
      </tr>|;
......
1013 1013
    $form->error($locale->text("Invoice has already been storno'd!"));
1014 1014
  }
1015 1015

  
1016
  my $employee_id = $form->{employee_id};
1016 1017
  invoice_links();
1017 1018
  prepare_invoice();
1018 1019
  relink_accounts();
......
1030 1031
  $form->{id} = "";
1031 1032
  $form->{invnumber} = "Storno zu " . $form->{invnumber};
1032 1033
  $form->{rowcount}++;
1033
  &post();
1034
  $form->{employee_id} = $employee_id;
1035
  post();
1034 1036
  $lxdebug->leave_sub();
1035 1037

  
1036 1038
}

Auch abrufbar als: Unified diff