Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5fdf1ffd

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID 5fdf1ffda5ef2d463208c38f96a2f97b07711c91
  • Vorgänger 160fa214
  • Nachfolger 22bcb6b1

ActionBar: nicht mehr benötigte Lieferadressenmaske entfernt

Unterschiede anzeigen:

bin/mozilla/io.pl
1702 1702
  $main::lxdebug->leave_sub();
1703 1703
}
1704 1704

  
1705
sub ship_to {
1706
  $main::lxdebug->enter_sub();
1707

  
1708
  _check_io_auth();
1709

  
1710
  $::form->{print_and_post} = 0 if $::form->{second_run};
1711

  
1712
  map { $::form->{$_} = $::form->parse_amount(\%::myconfig, $::form->{$_}) } qw(exchangerate creditlimit creditremaining);
1713

  
1714
  # get details for customer/vendor
1715
  call_sub($::form->{vc} . "_details", qw(name department_1 department_2 street zipcode city country gln contact email phone fax), $::form->{vc} . "number");
1716
  $::form->{rowcount}--;
1717

  
1718
  my $cvars         = SL::DB::Shipto->new->cvars_by_config;
1719
  my @shipto_vars   = qw(shiptoname shiptostreet shiptozipcode shiptocity shiptocountry shiptogln
1720
                         shiptocontact shiptocp_gender shiptophone shiptofax shiptoemail
1721
                         shiptodepartment_1 shiptodepartment_2);
1722
  my $previous_form = $::auth->save_form_in_session(skip_keys => [ @shipto_vars, qw(header shipto_id), map { "shiptocvar_" . $_->config->name } @{ $cvars } ]);
1723
  $::form->{title}  = $::locale->text('Ship to');
1724
  $::form->header;
1725

  
1726
  my $vc_obj = ($::form->{vc} eq 'customer' ? "SL::DB::Customer" : "SL::DB::Vendor")->new(id => $::form->{$::form->{vc} . "_id"})->load;
1727

  
1728
  $_->value($::form->{"shiptocvar_" . $_->config->name}) for @{ $cvars };
1729

  
1730
  print $::form->parse_html_template('io/ship_to', { previousform => $previous_form,
1731
                                                     nextsub      => $::form->{display_form} || 'display_form',
1732
                                                     vc_obj       => $vc_obj,
1733
                                                     cvars        => $cvars,
1734
                                                   });
1735

  
1736
  $main::lxdebug->leave_sub();
1737
}
1738

  
1739
sub ship_to_entered {
1740
  $::auth->restore_form_from_session(delete $::form->{previousform});
1741
  call_sub($::form->{nextsub});
1742
}
1743

  
1744 1705
sub relink_accounts {
1745 1706
  $main::lxdebug->enter_sub();
1746 1707

  

Auch abrufbar als: Unified diff