$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;
'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«',
'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',
'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.',
'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\'' => '',
'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' => '',
'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.' => '',
</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>