diff options
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_kundenverwaltung/order.phtml | 2 | ||||
| -rw-r--r-- | views/mods/mod_paypalapi/overview_button.phtml | 2 | ||||
| -rw-r--r-- | views/mods/mod_rechnungen/order_view.phtml | 18 | ||||
| -rw-r--r-- | views/mods/mod_rechnungen/settings_edit.phtml | 40 | ||||
| -rw-r--r-- | views/mods/mod_revocation/ajaxDialogContent.phtml | 2 | ||||
| -rw-r--r-- | views/mods/mod_revocation/page_form.phtml | 2 |
6 files changed, 39 insertions, 27 deletions
diff --git a/views/mods/mod_kundenverwaltung/order.phtml b/views/mods/mod_kundenverwaltung/order.phtml index 7ddd365..8aa7f59 100644 --- a/views/mods/mod_kundenverwaltung/order.phtml +++ b/views/mods/mod_kundenverwaltung/order.phtml @@ -8,7 +8,7 @@ ?>
-<div class="wpsg_mod_kundenverwaltung_order wpsg">
+<div class="wpsg_mod_kundenverwaltung_order wpsg alignwide">
<?php echo $this->writeFrontendMessage(); ?>
diff --git a/views/mods/mod_paypalapi/overview_button.phtml b/views/mods/mod_paypalapi/overview_button.phtml index dfe5490..deef1cd 100644 --- a/views/mods/mod_paypalapi/overview_button.phtml +++ b/views/mods/mod_paypalapi/overview_button.phtml @@ -81,7 +81,7 @@ }, onError(err) { - <?php if ($GLOBALS['wpsg_sc']->get_option('wpsg_debugModus') === "1") { ?>console.error(err);<?php } ?> + <?php if (\wpsg_ShopController::getShop()->get_option('wpsg_debugModus') === "1") { ?>console.error(err);<?php } ?> } }).render("#giropay-btn"); diff --git a/views/mods/mod_rechnungen/order_view.phtml b/views/mods/mod_rechnungen/order_view.phtml index 3020df2..6487bce 100644 --- a/views/mods/mod_rechnungen/order_view.phtml +++ b/views/mods/mod_rechnungen/order_view.phtml @@ -43,17 +43,17 @@ 'template_url': '<?php echo wpsg_ShopController::getShop()->getRessourceURL('mods/mod_rechnungen/html/e_invoice_app.html'); ?>',
'default_profile': <?php echo intval(wpsg_ShopController::getShop()->get_option('wpsg_mod_rechnungen_einvoice')); ?>,
'arProfile': <?php echo json_encode([
- 100 + ZugferdProfiles::PROFILE_MINIMUM => ['label' => __('EN16931 Minimum', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_MINIMUM)],
+ 100 + ZugferdProfiles::PROFILE_EN16931 => ['label' => __('EN16931 Comfort (empfohlen)', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_EN16931)],
100 + ZugferdProfiles::PROFILE_BASIC => ['label' => __('EN16931 Basic', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_BASIC)],
- 100 + ZugferdProfiles::PROFILE_BASICWL => ['label' => __('EN16931 Basic WL', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_BASICWL)],
- 100 + ZugferdProfiles::PROFILE_EN16931 => ['label' => __('EN16931 Comfort', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_EN16931)],
100 + ZugferdProfiles::PROFILE_EXTENDED => ['label' => __('EN16931 Extended', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_EXTENDED)],
- 100 + ZugferdProfiles::PROFILE_XRECHNUNG => ['label' => __('EN16931 XRechnung 1', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG)],
- 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2 => ['label' => __('EN16931 XRechnung 2', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2)],
- 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_1 => ['label' => __('EN16931 XRechnung 2.1', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2_1)],
- 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_2 => ['label' => __('EN16931 XRechnung 2.2', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2_2)],
- 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_3 => ['label' => __('EN16931 XRechnung 2.3', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2_3)],
- 100 + ZugferdProfiles::PROFILE_XRECHNUNG_3 => ['label' => __('EN16931 XRechnung 3', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_3)]
+ 100 + ZugferdProfiles::PROFILE_XRECHNUNG_3 => ['label' => __('XRechnung 3 (für öffentliche Auftraggeber)', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_3)],
+ 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_3 => ['label' => __('XRechnung 2.3', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2_3)],
+ 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_2 => ['label' => __('XRechnung 2.2', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2_2)],
+ 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_1 => ['label' => __('XRechnung 2.1', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2_1)],
+ 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2 => ['label' => __('XRechnung 2', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG_2)],
+ 100 + ZugferdProfiles::PROFILE_XRECHNUNG => ['label' => __('XRechnung 1', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_XRECHNUNG)],
+ 100 + ZugferdProfiles::PROFILE_MINIMUM => ['label' => __('ZUGFeRD Minimum (keine gültige E-Rechnung)', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_MINIMUM)],
+ 100 + ZugferdProfiles::PROFILE_BASICWL => ['label' => __('ZUGFeRD Basic WL (keine gültige E-Rechnung)', 'wpsg'), 'url' => eInvoice::buildUrl($oInvoice->getId(), ZugferdProfiles::PROFILE_BASICWL)]
]); ?>
});
diff --git a/views/mods/mod_rechnungen/settings_edit.phtml b/views/mods/mod_rechnungen/settings_edit.phtml index 73aa609..6ce5482 100644 --- a/views/mods/mod_rechnungen/settings_edit.phtml +++ b/views/mods/mod_rechnungen/settings_edit.phtml @@ -6,20 +6,26 @@ use horstoeko\zugferd\ZugferdProfiles;
- $ArrZugferdProfile = [
- 0 => __('Keine E-Rechnungsdaten erzeugen', 'wpsg'),
- 100 + ZugferdProfiles::PROFILE_MINIMUM => __('EN16931 Minimum', 'wpsg'),
- 100 + ZugferdProfiles::PROFILE_BASIC => __('EN16931 Basic', 'wpsg'),
- 100 + ZugferdProfiles::PROFILE_BASICWL => __('EN16931 Basic WL', 'wpsg'),
- 100 + ZugferdProfiles::PROFILE_EN16931 => __('EN16931 Comfort', 'wpsg'),
- 100 + ZugferdProfiles::PROFILE_EXTENDED => __('EN16931 Extended', 'wpsg'),
- 100 + ZugferdProfiles::PROFILE_XRECHNUNG => __('EN16931 XRechnung 1', 'wpsg'),
- 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2 => __('EN16931 XRechnung 2', 'wpsg'),
- 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_1 => __('EN16931 XRechnung 2.1', 'wpsg'),
- 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_2 => __('EN16931 XRechnung 2.2', 'wpsg'),
- 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_3 => __('EN16931 XRechnung 2.3', 'wpsg'),
- 100 + ZugferdProfiles::PROFILE_XRECHNUNG_3 => __('EN16931 XRechnung 3', 'wpsg'),
- ]
+ /*
+ * Profile in zwei Gruppen: oben die Profile, die der Validator als E-Rechnung
+ * anerkennt, unten MINIMUM und BASIC WL. Diese beiden sind keine gültigen
+ * E-Rechnungen - der KoSIT-Validator findet für sie kein Prüfszenario und weist
+ * das Dokument als "Dokumenttyp unbekannt" zurück.
+ */
+ $ArrZugferdProfile = [
+ 0 => __('Keine E-Rechnungsdaten erzeugen', 'wpsg'),
+ 100 + ZugferdProfiles::PROFILE_EN16931 => __('EN16931 Comfort (empfohlen)', 'wpsg'),
+ 100 + ZugferdProfiles::PROFILE_BASIC => __('EN16931 Basic', 'wpsg'),
+ 100 + ZugferdProfiles::PROFILE_EXTENDED => __('EN16931 Extended', 'wpsg'),
+ 100 + ZugferdProfiles::PROFILE_XRECHNUNG_3 => __('XRechnung 3 (für öffentliche Auftraggeber)', 'wpsg'),
+ 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_3 => __('XRechnung 2.3', 'wpsg'),
+ 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_2 => __('XRechnung 2.2', 'wpsg'),
+ 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2_1 => __('XRechnung 2.1', 'wpsg'),
+ 100 + ZugferdProfiles::PROFILE_XRECHNUNG_2 => __('XRechnung 2', 'wpsg'),
+ 100 + ZugferdProfiles::PROFILE_XRECHNUNG => __('XRechnung 1', 'wpsg'),
+ 100 + ZugferdProfiles::PROFILE_MINIMUM => __('ZUGFeRD Minimum (nur Buchungshilfe, keine gültige E-Rechnung)', 'wpsg'),
+ 100 + ZugferdProfiles::PROFILE_BASICWL => __('ZUGFeRD Basic WL (ohne Positionen, keine gültige E-Rechnung)', 'wpsg'),
+ ]
?>
@@ -202,6 +208,12 @@ <?php echo wpsg_drawForm_Select('wpsg_mod_rechnungen_einvoice', __('E-Rechnung', 'wpsg'), $ArrZugferdProfile, $this->get_option('wpsg_mod_rechnungen_einvoice'), ['help' => 'wpsg_mod_rechnungen_einvoice']); ?>
<p style="line-height:normal; margin-bottom:1rem; margin-top:1rem; display:none; font-style:italic;" id="wpsg_mod_rechnungen_einvoice_description"><?php echo __('Die Platzhalter können bei den Formatfeldern und dem Dateinamen verwendet werden. Der Platzhalter %nr% sollte dabei immer Verwendung finden.', 'wpsg'); ?></p>
+
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_rechnungen_cmyk_profile', __('CMYK-Farbprofil einbetten', 'wpsg'), $this->get_option('wpsg_mod_rechnungen_cmyk_profile'), ['help' => 'wpsg_mod_rechnungen_cmyk_profile']); ?>
+
+ <p style="line-height:normal; margin-bottom:1rem; font-style:italic;">
+ <?php echo __('Nur nötig, wenn Ihr Logo oder ein als JPG hinterlegtes Briefpapier CMYK-Farben enthält. PDF/A-3 verlangt dafür ein Farbprofil in der Rechnung, sonst weisen Prüfprogramme die E-Rechnung zurück. Für ein Briefpapier im PDF-Format hilft die Option nicht, weil ein eingebundenes PDF seine Farben aus den eigenen Ressourcen auflöst; ein solches Briefpapier muss selbst in RGB vorliegen. Die Option vergrößert jede Rechnung um etwa 120 KB und bleibt deshalb standardmäßig aus.', 'wpsg'); ?>
+ </p>
<?php
array_walk($ArrZugferdProfile, function(&$v, $k) {
diff --git a/views/mods/mod_revocation/ajaxDialogContent.phtml b/views/mods/mod_revocation/ajaxDialogContent.phtml index 89a32c3..0c7e9cf 100644 --- a/views/mods/mod_revocation/ajaxDialogContent.phtml +++ b/views/mods/mod_revocation/ajaxDialogContent.phtml @@ -148,7 +148,7 @@ $arReason = \wpsgRevocation\Revocation::getReasons(); </div> <p> - Es gelten unsere <?php echo '<a href="' . $GLOBALS['wpsg_sc']->getURL(wpsg_ShopController::URL_DATENSCHUTZ) . '">Datenschutzbestimmungen</a>' ?> + Es gelten unsere <?php echo '<a href="' . \wpsg_ShopController::getShop()->getURL(wpsg_ShopController::URL_DATENSCHUTZ) . '">Datenschutzbestimmungen</a>' ?> </p> </form>
\ No newline at end of file diff --git a/views/mods/mod_revocation/page_form.phtml b/views/mods/mod_revocation/page_form.phtml index 5640420..f3024b6 100644 --- a/views/mods/mod_revocation/page_form.phtml +++ b/views/mods/mod_revocation/page_form.phtml @@ -94,7 +94,7 @@ <p class="wpsg_revocation_page_datenschutz"> <?php echo \__('Es gelten unsere', 'wpsg'); ?> - <a href="<?php echo $GLOBALS['wpsg_sc']->getURL(wpsg_ShopController::URL_DATENSCHUTZ); ?>"><?php echo \__('Datenschutzbestimmungen', 'wpsg'); ?></a>. + <a href="<?php echo \wpsg_ShopController::getShop()->getURL(wpsg_ShopController::URL_DATENSCHUTZ); ?>"><?php echo \__('Datenschutzbestimmungen', 'wpsg'); ?></a>. </p> <div class="form_field wpsg_revocation_page_submit_wrap"> |
