Revision c4b07238
Von Moritz Bunkus vor fast 3 Jahren hinzugefügt
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
Order-Controller: abweichende Rechnungsadresse nur bei Kunden behandeln