Skip to content

Commit

Permalink
Swiss QR-Bill: Variante IBAN ohne Referenz in Druckablauf und Mandant…
Browse files Browse the repository at this point in the history
…enkonfiguration hinzugefügt
  • Loading branch information
rebootl committed Jan 19, 2022
1 parent 13aed1f commit a9d122f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
18 changes: 14 additions & 4 deletions SL/Template/OpenDocument.pm
Expand Up @@ -678,10 +678,20 @@ sub generate_qr_code {
$form->{'invnumber'},
);

my %ref_nr_data = (
'type' => 'QRR',
'ref_number' => $ref_number,
);
my %ref_nr_data;
if ($::instance_conf->get_create_qrbill_invoices == 1) {
%ref_nr_data = (
'type' => 'QRR',
'ref_number' => $ref_number,
);
} elsif ($::instance_conf->get_create_qrbill_invoices == 2) {
%ref_nr_data = (
'type' => 'NON',
'ref_number' => '',
);
} else {
$::form->error($::locale->text('Error getting QR-Bill type.'));
}

# set into form for template processing
$form->{'biller_information'} = \%biller_information;
Expand Down
6 changes: 5 additions & 1 deletion locale/de/all
Expand Up @@ -815,8 +815,10 @@ $self->{texts} = {
'Create one from the context menu by right-clicking on this text.' => 'Erstellen Sie einen aus dem Kontextmenü, indem Sie auf diesen Text rechtsklicken.',
'Create order' => 'Auftrag erstellen',
'Create sales invoices with Factur-X/ZUGFeRD data' => 'Verkaufsrechnungen mit Factur-X-/ZUGFeRD-Daten erzeugen',
'Create sales invoices with Swiss QR-Bill' => 'Verkaufsrechnungen mit Schweizer QR-Rechnung erzeugen',
'Create sales invoices with Swiss QR-bill' => 'Verkaufsrechnungen mit Schweizer QR-Rechnung erzeugen',
'Create tables' => 'Tabellen anlegen',
'Create variant IBAN without reference' => 'Variante IBAN ohne Referenz erzeugen',
'Create variant QR-IBAN with QR reference' => 'Variante QR-IBAN mit QR-Referenz erzeugen',
'Create with profile \'Factur-X 1.0.05/ZUGFeRD 2.1.1 extended\'' => 'Mit Profil »Factur-X 1.0.05/ZUGFeRD 2.1.1 extended«',
'Create with profile \'Factur-X 1.0.05/ZUGFeRD 2.1.1 extended\' (test mode)' => 'Mit Profil »Factur-X 1.0.05/ZUGFeRD 2.1.1 extended« (Test-Modus)',
'Create with profile \'XRechnung 2.0.0\'' => 'Mit Profil »XRechnung 2.0.0«',
Expand Down Expand Up @@ -1114,6 +1116,7 @@ $self->{texts} = {
'Do not change the tax rate of taxkey 0.' => 'Ändern Sie nicht den Steuersatz vom Steuerschlüssel 0.',
'Do not check for duplicates' => 'Nicht nach Dubletten suchen',
'Do not create Factur-X/ZUGFeRD invoices' => 'Keine Factur-X-/ZUGFeRD-Rechnungen erzeugen',
'Do not create QR-bill invoices' => 'Keine QR-Rechnungen erzeugen',
'Do not leave booking form?' => 'Buchungsmaske nicht verlassen?',
'Do not link to a project.' => 'Nicht mit einem Projekt verknüpfen.',
'Do not modify this position' => 'Diese Position nicht verändern',
Expand Down Expand Up @@ -1356,6 +1359,7 @@ $self->{texts} = {
'Equity' => 'Passiva',
'Erfolgsrechnung' => 'Erfolgsrechnung',
'Error' => 'Fehler',
'Error getting QR-Bill type.' => 'Fehler in QR-Rechnung Varianten Auswahl.',
'Error handling' => 'Fehlerbehandlung',
'Error in database control file \'%s\': %s' => 'Fehler in Datenbankupgradekontrolldatei \'%s\': %s',
'Error in position #1: You must either assign no stock at all or the full quantity of #2 #3.' => 'Fehler in Position #1: Sie müssen einer Position entweder gar keinen Lagereingang oder die vollständige im Lieferschein vermerkte Menge von #2 #3 zuweisen.',
Expand Down
4 changes: 4 additions & 0 deletions locale/en/all
Expand Up @@ -817,6 +817,8 @@ $self->{texts} = {
'Create sales invoices with Factur-X/ZUGFeRD data' => '',
'Create sales invoices with Swiss QR-Bill' => '',
'Create tables' => '',
'Create variant with QR reference' => '',
'Create variant without reference number' => '',
'Create with profile \'Factur-X 1.0.05/ZUGFeRD 2.1.1 extended\'' => '',
'Create with profile \'Factur-X 1.0.05/ZUGFeRD 2.1.1 extended\' (test mode)' => '',
'Create with profile \'XRechnung 2.0.0\'' => '',
Expand Down Expand Up @@ -1114,6 +1116,7 @@ $self->{texts} = {
'Do not change the tax rate of taxkey 0.' => '',
'Do not check for duplicates' => '',
'Do not create Factur-X/ZUGFeRD invoices' => '',
'Do not create QR-Bill invoices' => '',
'Do not leave booking form?' => '',
'Do not link to a project.' => '',
'Do not modify this position' => '',
Expand Down Expand Up @@ -1356,6 +1359,7 @@ $self->{texts} = {
'Equity' => '',
'Erfolgsrechnung' => '',
'Error' => '',
'Error getting QR-Bill type.' => '',
'Error handling' => '',
'Error in database control file \'%s\': %s' => '',
'Error in position #1: You must either assign no stock at all or the full quantity of #2 #3.' => '',
Expand Down
6 changes: 4 additions & 2 deletions templates/webpages/client_config/_features.html
Expand Up @@ -278,8 +278,10 @@
</td>
</tr>
<tr>
<td align="right">[% LxERP.t8("Create sales invoices with Swiss QR-Bill") %]</td>
<td>[% L.yes_no_tag("defaults.create_qrbill_invoices", SELF.defaults.create_qrbill_invoices) %]</td>
<td align="right">[% LxERP.t8("Create sales invoices with Swiss QR-bill") %]</td>
<td>
[% L.select_tag("defaults.create_qrbill_invoices", [ [ 0, LxERP.t8('Do not create QR-bill invoices') ], [ 1, LxERP.t8('Create variant QR-IBAN with QR reference') ], [ 2, LxERP.t8('Create variant IBAN without reference') ] ], default=SELF.defaults.create_qrbill_invoices) %]
</td>
<td>[% LxERP.t8("If enabled sales invoices created using OpenDocument/OASIS format will include data for Swiss QR-Bill creation.") %]</td>
</tr>

Expand Down

0 comments on commit a9d122f

Please sign in to comment.