Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c2688215

Von Kivitendo Admin vor mehr als 8 Jahren hinzugefügt

  • ID c2688215ecb6f1122edd0d436081dd8dc966fdb9
  • Vorgänger 2721bfd0
  • Nachfolger 76785737

Bugfix #182: Auftrag aus Rechnung erstellen

Ticket #182 behoben, + Kommentare.

Unterschiede anzeigen:

bin/mozilla/io.pl
889 889
  $form->{old_salesman_id} = $form->{salesman_id};
890 890

  
891 891
  delete $form->{$_} foreach (qw(printed emailed queued));
892

  
893
  # When creating a new sales order from a saved sales invoice, reset id,
894
  # ordnumber, transdate and deliverydate as we are creating a new order. This
895
  # workflow is probably mainly used as a template mechanism for creating new
896
  # orders from existing invoices, so we probably don't want to link the items.
897
  # Is this order function called anywhere else?
898
  # The worksflows in oe already call sales_order and purchase_order in oe, not
899
  # this general function which now only seems to be called from saved sales
900
  # invoices
901
  # Why is ordnumber set to invnumber above, does this ever make sense?
902

  
903
  if ( $form->{script} eq 'is.pl' && $form->{type} eq 'invoice' ) {
904
    delete $form->{$_} foreach (qw(ordnumber id transdate deliverydate));
905
  };
906

  
892 907
  my $buysell;
893 908
  if ($form->{script} eq 'ir.pl' || $form->{type} eq 'request_quotation') {
894 909
    $form->{title} = $locale->text('Add Purchase Order');

Auch abrufbar als: Unified diff