Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision cd812c6b

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

  • ID cd812c6bfa13b827806e526d22327b6aee07bc8d
  • Vorgänger b8125c17
  • Nachfolger d40a8e20

Nicht-editierbare CVars bei neuem Auftrag aus Mehrfachauswahl richtig übernehemen.

Mehrauswahl im Auftragsbericht.

Unterschiede anzeigen:

SL/OE.pm
571 571

  
572 572
      # link previous items with orderitems
573 573
      foreach (qw(orderitems invoice)) {
574
        if (!$form->{saveasnew} && $form->{"converted_from_${_}_id_$i"}) {
574
        if (!$form->{saveasnew} && !$form->{useasnew} && $form->{"converted_from_${_}_id_$i"}) {
575 575
          RecordLinks->create_links('dbh'        => $dbh,
576 576
                                    'mode'       => 'ids',
577 577
                                    'from_table' => $_,
......
840 840

  
841 841
  # and remember for the rest of the function
842 842
  my $is_collective_order = scalar @ids;
843
  $form->{useasnew} = !!$is_collective_order;
843 844

  
844 845
  if (!$form->{id}) {
845 846
    my $extra_days   = $form->{type} eq 'sales_quotation' ? $::instance_conf->get_reqdate_interval : 1;
......
1044 1045
      }
1045 1046

  
1046 1047
      # delete orderitems_id in collective orders, so that they get cloned no matter what
1047
      delete $ref->{orderitems_id} if $is_collective_order;
1048
      $ref->{converted_from_orderitems_id} = delete $ref->{orderitems_id} if $is_collective_order;
1048 1049

  
1049 1050
      # get tax rates and description
1050 1051
      my $accno_id = ($form->{vc} eq "customer") ? $ref->{income_accno} : $ref->{expense_accno};
bin/mozilla/oe.pl
478 478
        CFDD_shipto CFDD_shipto_id shiptocity shiptocountry shiptocontact shiptophone shiptofax
479 479
        shiptodepartment_1 shiptodepartment_2 shiptoemail shiptocp_gender
480 480
        message email subject cc bcc taxpart taxservice taxaccounts cursor_fokus
481
        show_details),
481
        show_details useasnew),
482 482
        @custom_hiddens,
483 483
        map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts} ];  # deleted: discount
484 484

  

Auch abrufbar als: Unified diff