Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ba7276fa

Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt

  • ID ba7276fa911871e2dcbb1fbc19e1ba4ce20ac658
  • Vorgänger 14273b4f
  • Nachfolger a068401e

Bei Umwandlung Angebot -> Auftrag Feld "reqdate" löschen

Fixt #1969.

Unterschiede anzeigen:

bin/mozilla/oe.pl
1736 1736

  
1737 1737
  $form->{cp_id} *= 1;
1738 1738

  
1739
  my $source_type = $form->{type};
1739 1740
  $form->{title} = $locale->text('Add Purchase Order');
1740 1741
  $form->{vc}    = "vendor";
1741 1742
  $form->{type}  = "purchase_order";
1742 1743

  
1743 1744
  $form->get_employee();
1744 1745

  
1745
  &poso;
1746
  poso(source_type => $form->{type});
1746 1747

  
1747 1748
  delete $form->{sales_order_to_purchase_order};
1748 1749

  
......
1764 1765

  
1765 1766
  $form->{cp_id} *= 1;
1766 1767

  
1768
  my $source_type = $form->{type};
1767 1769
  $form->{title}  = $locale->text('Add Sales Order');
1768 1770
  $form->{vc}     = "customer";
1769 1771
  $form->{type}   = "sales_order";
1770 1772

  
1771 1773
  $form->get_employee();
1772 1774

  
1773
  &poso;
1775
  poso(source_type => $source_type);
1774 1776

  
1775 1777
  $main::lxdebug->leave_sub();
1776 1778
}
......
1778 1780
sub poso {
1779 1781
  $main::lxdebug->enter_sub();
1780 1782

  
1783
  my %param    = @_;
1781 1784
  my $form     = $main::form;
1782 1785
  my %myconfig = %main::myconfig;
1783 1786

  
......
1787 1790
  $form->{transdate} = $form->current_date(\%myconfig);
1788 1791
  delete $form->{duedate};
1789 1792

  
1793
  # "reqdate" is the validity date for a quotation and the delivery
1794
  # date for an order. Therefore it makes no sense to keep the value
1795
  # when converting from one into the other.
1796
  delete $form->{reqdate} if ($param{source_type} =~ /_quotation$/) == ($form->{type} =~ /_quotation$/);
1797

  
1790 1798
  $form->{convert_from_oe_ids} = $form->{id};
1791 1799
  $form->{closed}              = 0;
1792 1800

  

Auch abrufbar als: Unified diff