Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 94e11003

Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt

  • ID 94e11003809e9090514026a733e58e72e636a6bb
  • Vorgänger 00738f6f
  • Nachfolger 01bdb4dc

Beim Umwandeln von Angeboten/Preisanfragen in Aufträge die IDs in record_links speichern. Beim Umwandeln von Aufträgen und Lieferscheinen in Rechnungen die IDs in record_links speichern.

Unterschiede anzeigen:

bin/mozilla/do.pl
648 648
  check_do_access();
649 649
  $auth->assert($form->{type} eq 'purchase_delivery_order' ? 'vendor_invoice_edit' : 'invoice_edit');
650 650

  
651
  $form->{close_do_ids} = $form->{id};
651
  $form->{convert_from_do_ids} = $form->{id};
652
  $form->{deliverydate}        = $form->{transdate};
653
  $form->{transdate}           = $form->{invdate} = $form->current_date(\%myconfig);
654
  $form->{duedate}             = $form->current_date(\%myconfig, $form->{invdate}, $form->{terms} * 1);
655
  $form->{defaultcurrency}     = $form->get_default_currency(\%myconfig);
652 656

  
653
  $form->{deliverydate} = $form->{transdate};
654
  $form->{transdate}    = $form->{invdate} = $form->current_date(\%myconfig);
655
  $form->{duedate}      = $form->current_date(\%myconfig, $form->{invdate}, $form->{terms} * 1);
656

  
657
  $form->{id}     = '';
658
  $form->{closed} = 0;
659 657
  $form->{rowcount}--;
660 658

  
661
  $form->{defaultcurrency} = $form->get_default_currency(\%myconfig);
659
  delete @{$form}{qw(id closed delivered)};
662 660

  
663 661
  if ($form->{type} eq 'purchase_delivery_order') {
664 662
    $form->{title}  = $locale->text('Add Vendor Invoice');
......
742 740
                              'back_button' => 1);
743 741
  }
744 742

  
745
  $form->{close_do_ids}    = join ' ', @do_ids;
746
  $form->{deliverydate}    = $form->{transdate};
747
  $form->{transdate}       = $form->current_date(\%myconfig);
748
  $form->{duedate}         = $form->current_date(\%myconfig, $form->{invdate}, $form->{terms} * 1);
749
  $form->{type}            = "invoice";
750
  $form->{closed}          = 0;
751
  $form->{defaultcurrency} = $form->get_default_currency(\%myconfig);
743
  $form->{convert_from_do_ids} = join ' ', @do_ids;
744
  $form->{deliverydate}        = $form->{transdate};
745
  $form->{transdate}           = $form->current_date(\%myconfig);
746
  $form->{duedate}             = $form->current_date(\%myconfig, $form->{invdate}, $form->{terms} * 1);
747
  $form->{type}                = "invoice";
748
  $form->{closed}              = 0;
749
  $form->{defaultcurrency}     = $form->get_default_currency(\%myconfig);
752 750

  
753 751
  my $buysell;
754 752
  if ($form->{type} eq 'purchase_delivery_order') {

Auch abrufbar als: Unified diff