Revision 5a57280a
Von Cem Aydin vor mehr als 1 Jahr hinzugefügt
| 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
Schweizer QR-Rechnung: Zusätzliche Rechnungsadressen in QR-Code Ausgabe eingebaut