Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e070b638

Von Bernd Bleßmann vor fast 7 Jahren hinzugefügt

  • ID e070b6383cd90405970527fdb90f08fb1d96ba6d
  • Vorgänger 78e36cfd
  • Nachfolger 9ec05722

Auftrags-Controller: Workflow Lieferschein: gelieferte Positionen filtern

Dieser commit enthält einen Hack, der nochmal diskutiert und geändert werden
sollte.

Unterschiede anzeigen:

bin/mozilla/oe.pl
2042 2042
  my $order = SL::DB::Order->new(id => $::form->{id})->load;
2043 2043
  $order->flatten_to_form($::form, format_amounts => 1);
2044 2044

  
2045
  # hack: add partsgroup for first row if it does not exists,
2046
  # because _remove_billed_or_delivered_rows and _remove_full_delivered_rows
2047
  # determine fields to handled by existing fields for the first row. If partsgroup
2048
  # is missing there, for deleted rows the partsgroup_field is not emptied and in
2049
  # update_delivery_order it will not considered an empty row ...
2050
  $::form->{partsgroup_1} = '' if !exists $::form->{partsgroup_1};
2051

  
2045 2052
  # fake last empty row
2046 2053
  $::form->{rowcount}++;
2047 2054

  
2055
  _update_ship();
2048 2056
  delivery_order();
2049 2057
}
2050 2058

  
......
2055 2063
  my $order = SL::DB::Order->new(id => $::form->{id})->load;
2056 2064
  $order->flatten_to_form($::form, format_amounts => 1);
2057 2065

  
2066
  # hack: add partsgroup for first row if it does not exists,
2067
  # because _remove_billed_or_delivered_rows and _remove_full_delivered_rows
2068
  # determine fields to handled by existing fields for the first row. If partsgroup
2069
  # is missing there, for deleted rows the partsgroup_field is not emptied and in
2070
  # update_delivery_order it will not considered an empty row ...
2071
  $::form->{partsgroup_1} = '' if !exists $::form->{partsgroup_1};
2072

  
2058 2073
  # fake last empty row
2059 2074
  $::form->{rowcount}++;
2060 2075

  
2076
  _update_ship();
2061 2077
  invoice();
2062 2078
}
2063 2079

  

Auch abrufbar als: Unified diff