Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5428f5f6

Von Moritz Bunkus vor mehr als 5 Jahren hinzugefügt

  • ID 5428f5f6d9dbced453dcfc113f683ceacee6380a
  • Vorgänger da836211
  • Nachfolger 285578d3

Angebote/Aufträge: Benutzerdef. Variablen in Lieferadressen gefixt

Unterschiede anzeigen:

bin/mozilla/oe.pl
633 633
      $form->{shipto_id} = $form->{CFDD_shipto_id};
634 634
  }
635 635

  
636
  push @custom_hiddens, map { "shiptocvar_" . $_->name } @{ SL::DB::Manager::CustomVariableConfig->get_all(where => [ module => 'ShipTo' ]) };
637

  
638 636
  $TMPL_VAR->{HIDDENS} = [ map { name => $_, value => $form->{$_} },
639 637
     qw(id type vc proforma queued printed emailed
640 638
        title creditlimit creditremaining tradediscount business
......
731 729

  
732 730
  my $print_options_html = setup_sales_purchase_print_options();
733 731

  
732
  my $shipto_cvars       = SL::DB::Shipto->new->cvars_by_config;
733
  foreach my $var (@{ $shipto_cvars }) {
734
    my $name = "shiptocvar_" . $var->config->name;
735
    $var->value($form->{$name}) if exists $form->{$name};
736
  }
737

  
734 738
  print $form->parse_html_template("oe/form_footer", {
735 739
     %$TMPL_VAR,
736 740
     print_options   => $print_options_html,
......
740 744
     is_req_quo      => scalar ($form->{type} =~ /request_quotation$/),
741 745
     is_sales_ord    => scalar ($form->{type} =~ /sales_order$/),
742 746
     is_pur_ord      => scalar ($form->{type} =~ /purchase_order$/),
747
     shipto_cvars    => $shipto_cvars,
743 748
  });
744 749

  
745 750
  $main::lxdebug->leave_sub();
templates/webpages/oe/form_footer.html
139 139
[% END %]
140 140

  
141 141
<div id="shipto_inputs" class="hidden">
142
 [%- PROCESS 'common/_ship_to_dialog.html' %]
142
 [%- PROCESS 'common/_ship_to_dialog.html' cvars=shipto_cvars %]
143 143
</div>
144 144

  
145 145
<div id="email_inputs" class="hidden"></div>

Auch abrufbar als: Unified diff