diff options
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_kundenverwaltung/edit.phtml | 11 | ||||
| -rwxr-xr-x | views/mods/mod_rechnungen/order_view_orderdata_after.phtml | 18 |
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 |
