diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2024-11-18 07:36:36 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2024-11-18 07:36:36 +0000 |
| commit | 2f9649c605bfafb9c205115a110fceb3068ab751 (patch) | |
| tree | eb80b01335a5f67a3cccc60de710ccc0220d2d9f /views/mailtemplates/adminmail.phtml | |
| parent | 479bd8b375aa031f2dc0a3750b1dd6c938ccfb6a (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/mailtemplates/adminmail.phtml')
| -rw-r--r-- | views/mailtemplates/adminmail.phtml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/views/mailtemplates/adminmail.phtml b/views/mailtemplates/adminmail.phtml index b284ed2..6b029ca 100644 --- a/views/mailtemplates/adminmail.phtml +++ b/views/mailtemplates/adminmail.phtml @@ -6,7 +6,7 @@ $this->htmlMail = false;
-
+ $oCustomer = wpsg_customer::getInstance(intval($this->view['basket']['checkout']['k_id']));
?><?php echo __('Hallo Administrator,', 'wpsg'); ?>
@@ -27,7 +27,10 @@ <?php echo wpsg_pad_right(__('Land', 'wpsg').':', 35); ?><?php echo $this->db->fetchOne("SELECT `name` FROM `".WPSG_TBL_LAND."` WHERE `id` = '".wpsg_q($this->view['basket']['checkout']['land'])."' "); ?>
<?php echo wpsg_pad_right(__('Telefon', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['tel']; ?>
<?php echo wpsg_pad_right(__('Fax', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['fax']; ?>
-<?php echo wpsg_pad_right(__('E-Mail Adresse', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['email']; ?>
+<?php echo wpsg_pad_right(__('E-Mail Adresse', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['email']; ?>
+<?php $email_einvoice = $oCustomer->getEMailEInvoice(); if ($email_einvoice !== null) { ?>
+<?php echo wpsg_pad_right(__('E-Mail (eRechnung)', 'wpsg').':', 35); ?><?php echo $email_einvoice; ?>
+<?php } ?>
<?php echo __('Lieferadresse:', 'wpsg'); ?>
@@ -54,6 +57,9 @@ <?php echo wpsg_pad_right(__('Telefon', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['tel']; ?>
<?php echo wpsg_pad_right(__('Fax', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['fax']; ?>
<?php echo wpsg_pad_right(__('E-Mail Adresse', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['email']; ?>
+<?php $email_einvoice = $oCustomer->getEMailEInvoice(); if ($email_einvoice !== null) { ?>
+<?php echo wpsg_pad_right(__('E-Mail (eRechnung)', 'wpsg').':', 35); ?><?php echo $email_einvoice; ?>
+<?php } ?>
<?php } ?>
|
