Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5a57280a

Von Cem Aydin vor mehr als 1 Jahr hinzugefügt

  • ID 5a57280a4f0b8870eefc0a0aca5c29c4b0a8234d
  • Vorgänger 2fc5a475
  • Nachfolger e2fa650c

Schweizer QR-Rechnung: Zusätzliche Rechnungsadressen in QR-Code Ausgabe eingebaut

Unterschiede anzeigen:

SL/IS.pm
my $biller_countrycode = SL::Helper::ISO3166::map_name_to_alpha_2_code($biller_country);
$form->{qrbill_biller_countrycode} = $biller_countrycode;
my $customer_country = $form->{'country'} || 'CH';
my $customer_country = $form->{billing_address_id} ?
$form->{billing_address_country} || 'CH' :
$form->{country} || 'CH';
my $customer_countrycode = SL::Helper::ISO3166::map_name_to_alpha_2_code($customer_country);
$form->{qrbill_customer_countrycode} = $customer_countrycode;
SL/Template/OpenDocument.pm
if (!$form->{qrbill_customer_countrycode}) {
$::form->error($::locale->text('Error mapping customer countrycode.'));
}
my %invoice_recipient_data = (
'address_type' => 'K',
'name' => $form->{'name'},
'address_row1' => $form->{'street'},
'address_row2' => $form->{'zipcode'} . ' ' . $form->{'city'},
'name' => $form->{billing_address_id} ?
$form->{'billing_address_name'} :
$form->{'name'},
'address_row1' => $form->{billing_address_id} ?
$form->{'billing_address_street'} :
$form->{'street'},
'address_row2' => $form->{billing_address_id} ?
$form->{'billing_address_zipcode'} . ' ' . $form->{'billing_address_city'} :
$form->{'zipcode'} . ' ' . $form->{'city'},
'countrycode' => $form->{qrbill_customer_countrycode},
);

Auch abrufbar als: Unified diff