Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c4b07238

Von Moritz Bunkus vor mehr als 2 Jahren hinzugefügt

  • ID c4b07238387eba288f94934a54847d1d432d3481
  • Vorgänger c46ee5eb
  • Nachfolger ea32f94d

Order-Controller: abweichende Rechnungsadresse nur bei Kunden behandeln

Unterschiede anzeigen:

SL/Controller/Order.pm
766 766
  $details{payment_terms}       = $cv->payment->description       if $cv->payment;
767 767
  $details{pricegroup}          = $cv->pricegroup->pricegroup     if $is_customer && $cv->pricegroup;
768 768

  
769
  foreach my $entry (@{ $cv->additional_billing_addresses }) {
770
    push @{ $details{ADDITIONAL_BILLING_ADDRESSES} },   { map { $_ => $entry->$_ } @{$entry->meta->columns} };
769
  if ($is_customer) {
770
    foreach my $entry (@{ $cv->additional_billing_addresses }) {
771
      push @{ $details{ADDITIONAL_BILLING_ADDRESSES} },   { map { $_ => $entry->$_ } @{$entry->meta->columns} };
772
    }
771 773
  }
772 774
  foreach my $entry (@{ $cv->shipto }) {
773 775
    push @{ $details{SHIPTO} },   { map { $_ => $entry->$_ } @{$entry->meta->columns} };
......
1341 1343
sub build_billing_address_select {
1342 1344
  my ($self) = @_;
1343 1345

  
1346
  return '' if $self->cv ne 'customer';
1347

  
1344 1348
  select_tag('order.billing_address_id',
1345 1349
             [ {displayable_id => '', id => ''}, $self->order->{$self->cv}->additional_billing_addresses ],
1346 1350
             value_key  => 'id',

Auch abrufbar als: Unified diff