summaryrefslogtreecommitdiff
path: root/views/order/view_customerdata.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2024-11-18 07:36:36 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2024-11-18 07:36:36 +0000
commit2f9649c605bfafb9c205115a110fceb3068ab751 (patch)
treeeb80b01335a5f67a3cccc60de710ccc0220d2d9f /views/order/view_customerdata.phtml
parent479bd8b375aa031f2dc0a3750b1dd6c938ccfb6a (diff)
- Feature: eInvoice Rechnungsempfänger unabhängig von E-Mail des Kunden
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8456 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/order/view_customerdata.phtml')
-rw-r--r--views/order/view_customerdata.phtml11
1 files changed, 10 insertions, 1 deletions
diff --git a/views/order/view_customerdata.phtml b/views/order/view_customerdata.phtml
index c76ec1a..3393da1 100644
--- a/views/order/view_customerdata.phtml
+++ b/views/order/view_customerdata.phtml
@@ -55,6 +55,9 @@
'">'.$this->view['data']['email'].'</a>'); ?>
<?php } ?>
<?php } ?>
+
+ <?php echo wpsg_drawForm_Input('email_einvoice', __('E-Mail für eInvoice', 'wpsg'), $this->view['data']['email_einvoice']); ?>
+
<br />
<?php if ($this->view['pflicht']['strasse'] != '2') { ?>
@@ -143,7 +146,7 @@
</a>
<?php echo wpsg_drawForm_TextEnd(__('Anschrift', 'wpsg')); ?>
-
+
<?php if ($this->view['pflicht']['geb'] != '2') { ?>
<?php if (strtotime($this->view['data']['geb']) > 0) { ?>
<?php echo wpsg_drawForm_Text(__('Geburtsdatum', 'wpsg'), wpsg_fromDate($this->view['data']['geb']), array('text' => true)); ?>
@@ -172,6 +175,12 @@
<?php } ?>
<?php echo wpsg_drawForm_TextEnd(__('E-Mail', 'wpsg')); ?>
+ <?php $email_einvoice = $Customer->getEMailEInvoice(); if ($email_einvoice !== null) { ?>
+ <?php echo wpsg_drawForm_TextStart(); ?>
+ <a href="mailto:<?php echo htmlspecialchars($email_einvoice); ?>"><?php echo htmlspecialchars($email_einvoice); ?></a>
+ <?php echo wpsg_drawForm_TextEnd(__('E-Mail für eRechnungen', 'wpsg')); ?>
+ <?php } ?>
+
<script>
function wpsg_saveInvoiceAdress()