Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d707f7ac

Von Moritz Bunkus vor fast 17 Jahren hinzugefügt

  • ID d707f7ac60b9dbe7da50d733db1e73eae84952f7
  • Vorgänger da734ed4
  • Nachfolger 3a83b0d2

Lieferscheine im Einkauf und Verkauf. Bisher nur gemerget, noch nicht getestet.

Unterschiede anzeigen:

bin/mozilla/oe.pl
1967 1967
  $lxdebug->leave_sub();
1968 1968
}
1969 1969

  
1970
sub delivery_order {
1971
  $lxdebug->enter_sub();
1972

  
1973
  if ($form->{type} =~ /^sales/) {
1974
    $auth->assert('sales_delivery_order_edit');
1975

  
1976
    $form->{vc}    = 'customer';
1977
    $form->{type}  = 'sales_delivery_order';
1978

  
1979
  } else {
1980
    $auth->assert('purchase_delivery_order_edit');
1981

  
1982
    $form->{vc}    = 'vendor';
1983
    $form->{type}  = 'purchase_delivery_order';
1984
  }
1985

  
1986
  require "bin/mozilla/do.pl";
1987

  
1988
  $form->{cp_id}           *= 1;
1989
  $form->{transdate}        = $form->current_date(\%myconfig);
1990
  delete $form->{duedate};
1991

  
1992
  $form->{closed}           = 0;
1993

  
1994
  $form->{old_employee_id}  = $form->{employee_id};
1995
  $form->{old_salesman_id}  = $form->{salesman_id};
1996

  
1997
  # reset
1998
  map { delete $form->{$_} } qw(id subject message cc bcc printed emailed queued creditlimit creditremaining discount tradediscount oldinvtotal);
1999

  
2000
  for $i (1 .. $form->{rowcount}) {
2001
    map { $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, $form->{"${_}_${i}"}) if ($form->{"${_}_${i}"}) } qw(ship qty sellprice listprice basefactor);
2002
  }
2003

  
2004
  my %old_values = map { $_ => $form->{$_} } qw(customer_id oldcustomer customer vendor_id oldvendor vendor);
2005

  
2006
  order_links();
2007

  
2008
  prepare_order();
2009

  
2010
  map { $form->{$_} = $old_values{$_} if ($old_values{$_}) } keys %old_values;
2011

  
2012
  update();
2013

  
2014
  $lxdebug->leave_sub();
2015
}
2016

  
1970 2017
sub e_mail {
1971 2018
  $lxdebug->enter_sub();
1972 2019

  
......
2003 2050

  
2004 2051
  check_oe_access();
2005 2052

  
2053
  retrieve_partunits() if ($form->{type} =~ /_delivery_order$/);
2054

  
2006 2055
  $form->{"taxaccounts"} =~ s/\s*$//;
2007 2056
  $form->{"taxaccounts"} =~ s/^\s*//;
2008 2057
  foreach my $accno (split(/\s*/, $form->{"taxaccounts"})) {

Auch abrufbar als: Unified diff