summaryrefslogtreecommitdiff
path: root/views/mods
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/mods
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/mods')
-rw-r--r--views/mods/mod_kundenverwaltung/edit.phtml11
-rwxr-xr-xviews/mods/mod_rechnungen/order_view_orderdata_after.phtml18
2 files changed, 25 insertions, 4 deletions
diff --git a/views/mods/mod_kundenverwaltung/edit.phtml b/views/mods/mod_kundenverwaltung/edit.phtml
index bab185b..86fdde0 100644
--- a/views/mods/mod_kundenverwaltung/edit.phtml
+++ b/views/mods/mod_kundenverwaltung/edit.phtml
@@ -3,7 +3,9 @@
/**
* Template für die Bearbeitung eines Kunden im Backend
*/
-
+
+ $oCustomer = wpsg_customer::getInstance(intval($_REQUEST['edit_id']??0));
+
?>
<div class="wpsg_customer" id="wpsg-bs">
@@ -57,11 +59,16 @@
<?php echo wpsg_drawForm_Input('vname', __('Vorname', 'wpsg'), @$this->view['data']['vname']); ?>
<?php } ?>
<?php if ($this->view['pflicht']['geb'] != '2') { ?>
- <?php echo wpsg_drawForm_Input('geb', __('Geburtsdatum', 'wpsg'), wpsg_formatTimestamp(strtotime(@$this->view['data']['geb']), true), array('autocomplete' => false, 'datepicker' => true, 'hint' => __('Format: TT.MM.JJJJ', 'wpsg'))); ?>
+ <?php echo wpsg_drawForm_Input('geb', __('Geburtsdatum', 'wpsg'), wpsg_formatTimestamp(strtotime($this->view['data']['geb']??''), true), array('autocomplete' => false, 'datepicker' => true, 'hint' => __('Format: TT.MM.JJJJ', 'wpsg'))); ?>
<?php } ?>
<?php if ($this->view['pflicht']['email'] != '2') { ?>
<?php echo wpsg_drawForm_Input('email', __('E-Mail', 'wpsg'), @$this->view['data']['email']); ?>
<?php } ?>
+
+ <?php if ($oCustomer->getEMailEInvoice() !== null) { ?>
+ <?php echo wpsg_drawForm_Input('email_einvoice', __('E-Mail für eRechnung', 'wpsg'), $oCustomer->getEMailEInvoice()); ?>
+ <?php } ?>
+
<?php if ($this->view['pflicht']['firma'] != '2') { ?>
<?php echo wpsg_drawForm_Input('firma', __('Firma', 'wpsg'), @$this->view['data']['firma']); ?>
<?php } ?>
diff --git a/views/mods/mod_rechnungen/order_view_orderdata_after.phtml b/views/mods/mod_rechnungen/order_view_orderdata_after.phtml
index bbefb5e..55ec2a0 100755
--- a/views/mods/mod_rechnungen/order_view_orderdata_after.phtml
+++ b/views/mods/mod_rechnungen/order_view_orderdata_after.phtml
@@ -97,7 +97,14 @@
<input type="checkbox" name="wpsg_rechnungen_sendmail" value="1" id="invoice_sendmail" checked="checked" />
<label for="invoice_sendmail"><?php echo __('E-Mail an Kunden senden', 'wpsg'); ?></label>
- <input type="email" name="wpsg_rechnungen_email" value="<?php echo $oCustomer->getEMail(); ?>" />
+ <input type="email" name="wpsg_rechnungen_email" value="<?php
+
+ $mail = $oCustomer->getEMailEInvoice();
+ if ($mail === null) $mail = $oCustomer->getEMail();
+
+ echo $mail;
+
+ ?>" />
<input type="checkbox" name="wpsg_rechnungen_faelligkeit" value="1" id="invoice_faelligkeit" checked="checked" />
<label for="invoice_faelligkeit"><?php echo __('Fälligkeit anzeigen', 'wpsg'); ?></label>
@@ -271,7 +278,14 @@
<input type="checkbox" name="storno_send" id="storno_send" value="1" />
<label for="storno_send"><?php echo __('E-Mail an Kunden senden', 'wpsg'); ?></label>
- <input type="email" name="storno_mail" value="<?php echo $oCustomer->getEMail(); ?>" />
+ <input type="email" name="storno_mail" value="<?php
+
+ $mail = $oCustomer->getEMailEInvoice();
+ if ($mail === null) $mail = $oCustomer->getEMail();
+
+ echo $mail;
+
+ ?>" />
<input type="checkbox" id="storno_shippay" name="storno_shippay" value="1" id="invoice_shippay" <?php