Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 00177fae

Von Moritz Bunkus vor mehr als 3 Jahren hinzugefügt

  • ID 00177fae5986f1de25515c7103d10fc36a38cefd
  • Vorgänger 844a541e
  • Nachfolger 60bc75ce

Zusätzliche Rechnungsadressen: beim Ausdruck als Variablen verfügbar machen

Unterschiede anzeigen:

SL/DB/Helper/FlattenToForm.pm
_copy($self, $form, '', '', 0, qw(id type taxzone_id ordnumber quonumber invnumber donumber cusordnumber taxincluded shippingpoint shipvia notes intnotes cp_id
employee_id salesman_id closed department_id language_id payment_id delivery_customer_id delivery_vendor_id shipto_id proforma
globalproject_id delivered transaction_description container_type accepted_by_customer invoice storno storno_id dunning_config_id
orddate quodate reqdate gldate duedate deliverydate datepaid transdate tax_point delivery_term_id));
orddate quodate reqdate gldate duedate deliverydate datepaid transdate tax_point delivery_term_id billing_address_id));
$form->{currency} = $form->{curr} = $self->currency_id ? $self->currency->name || '' : '';
if ( $vc eq 'customer' ) {
SL/Form.pm
use SL::DB;
use SL::DBConnect;
use SL::DBUtils;
use SL::DB::AdditionalBillingAddress;
use SL::DB::Customer;
use SL::DB::Default;
use SL::DB::PaymentTerm;
......
IS->invoice_details(\%::myconfig, $self, $::locale);
}
$self->set_addition_billing_address_print_variables;
# Chose extension & set source file name
my $extension = 'html';
if ($self->{format} eq 'postscript') {
......
return $self;
}
sub set_addition_billing_address_print_variables {
my ($self) = @_;
return if !$self->{billing_address_id};
my $address = SL::DB::Manager::AdditionalBillingAddress->find_by(id => $self->{billing_address_id});
return if !$address;
$self->{"billing_address_${_}"} = $address->$_ for map { $_->name } @{ $address->meta->columns };
}
sub substitute_placeholders_in_template_arrays {
my ($self, @fields) = @_;
bin/mozilla/io.pl
$form->get_shipto(\%myconfig);
}
$form->set_addition_billing_address_print_variables;
$form->{notes} =~ s/^\s+//g;
delete $form->{printer_command};

Auch abrufbar als: Unified diff