diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2026-08-27 11:32:55 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2026-08-27 11:32:55 +0000 |
| commit | d1f3d6771a500f0e2b1b174e6478f274aef96aaf (patch) | |
| tree | ce026df1b621cbbac00ae90f2b1ceb01fb6c0703 | |
| parent | 2c83a9eb9da67d41f992d54ea7d142e06baae67a (diff) | |
- Warnungen / eRechnungs Update
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8540 0d5edaf7-2b12-4e95-93f4-047927463d4b
| -rw-r--r-- | views/mods/mod_revocation/wpsg_revocation.css | 2 | ||||
| -rw-r--r-- | views/order/index.phtml | 72 |
2 files changed, 50 insertions, 24 deletions
diff --git a/views/mods/mod_revocation/wpsg_revocation.css b/views/mods/mod_revocation/wpsg_revocation.css index 7d6a9ea..4ebad37 100644 --- a/views/mods/mod_revocation/wpsg_revocation.css +++ b/views/mods/mod_revocation/wpsg_revocation.css @@ -27,7 +27,7 @@ .wpsg_revocation_product_button { flex-shrink:0; display:inline-flex; align-items:center; gap:0.5rem; - width:100%; min-height:35px; padding:0.25rem 0.5rem; + width:auto; min-height:35px; padding:0.25rem 0.5rem; border:1px solid black; cursor:pointer; } diff --git a/views/order/index.phtml b/views/order/index.phtml index 584f947..7b8b8ed 100644 --- a/views/order/index.phtml +++ b/views/order/index.phtml @@ -522,32 +522,58 @@ </script>
<div class="multiRechnung_tab" id="multiRechnung_inform" style="padding: 15px 0 15px 0; display:none;">
+
+ <div class="multiinvoice_form">
+
+ <?php $oCustomer = wpsg_customer::getInstance(intval($this->view['arFilter']['k_id'])); ?>
+ <div class="row">
+ <input type="checkbox" name="wpsg_Multirechnung_sendmail" value="1" id="invoice_sendmail" />
+ <label for="invoice_sendmail"><?php echo __('E-Mail an Kunden senden', 'wpsg'); ?></label>
+ <input type="email" name="wpsg_Multirechnung_email" value="<?php echo $oCustomer->getEMailEInvoice(); ?>" />
+ </div>
+
+ <div class="row">
+ <input type="checkbox" name="wpsg_Multirechnung_faelligkeit" value="1" id="invoice_faelligkeit" />
+ <label for="invoice_faelligkeit"><?php echo __('Fälligkeit anzeigen', 'wpsg'); ?></label>
+ <input type="date" name="wpsg_Multirechnung_faelligkeitsdatum" value="<?php echo date('Y-m-d', strtotime('+'.intval($this->get_option("wpsg_rechnungen_faelligkeit")).' day')); ?>" />
+ </div>
+
+ <div class="row">
+ <input type="checkbox" name="wpsg_Multirechnung_url" value="1" id="invoice_url" />
+ <label for="invoice_url"><?php echo __('URL Benachrichtigung', 'wpsg'); ?></label>
+ <span></span>
+ </div>
+
+ <div class="row">
+ <span></span>
+ <label for="invoice_date"><?php echo __('Rechnungsdatum', 'wpsg') ;?></label>
+ <input type="date" value="<?php echo date('Y-m-d'); ?>" name="wpsg_Multirechnung_datum" id="invoice_date" />
+ </div>
+
+ <span class="row" style="margin-top:0.5rem">
+ <input type="hidden" name="preview" id="wpsg_mod_rechnungen_preview" />
+ <input type="submit" name="wpsg_order_doaction" value="<?php echo _('Vorschau'); ?>" id="wpsg_mod_rechnungen_button_preview" />
+ <input type="submit" name="wpsg_order_doaction" value="<?php echo _('Erstellen'); ?>" id="wpsg_mod_rechnungen_button_submit" />
+ </span>
+
+ </div>
+ <style>
+
+ .multiinvoice_form { border:1px solid black; padding:1rem 0.5rem; display:flex; flex-direction:column; gap:1rem; width:500px; user-select:none;
+ .row { margin:0; display:flex; justify-content:flex-start; gap:0.5rem; align-items:center; min-height:26px;
+ & > * { margin:0; }
+ & > *:first-child { width:16px; min-width:16px; flex-shrink:0; }
+ input[type="text"], input[type="date"], input[type="email"] { height:26px; min-height:26px; }
+ }
+ }
+
+ </style>
+
+
<div style="width: 100%; padding: 1rem; display: grid; row-gap: 0.5rem; column-gap: 0.5rem; grid-template-columns: 25px 1fr 150px; align-items: center; grid-auto-rows: 30px; padding-bottom: 0.5rem;" >
- <?php $oCustomer = wpsg_customer::getInstance(intval($this->view['arFilter']['k_id'])); ?>
-
- <input type="checkbox" name="wpsg_Multirechnung_sendmail" value="1" id="invoice_sendmail" />
- <label for="invoice_sendmail"><?php echo __('E-Mail an Kunden senden', 'wpsg'); ?></label>
- <input type="email" name="wpsg_Multirechnung_email" value="<?php echo $oCustomer->getEMailEInvoice(); ?>" />
-
- <input type="checkbox" name="wpsg_Multirechnung_faelligkeit" value="1" id="invoice_faelligkeit" />
- <label for="invoice_faelligkeit"><?php echo __('Fälligkeit anzeigen', 'wpsg'); ?></label>
- <input type="date" name="wpsg_Multirechnung_faelligkeitsdatum" value="<?php echo date('Y-m-d', strtotime('+'.intval($this->get_option("wpsg_rechnungen_faelligkeit")).' day')); ?>" />
-
- <input type="checkbox" name="wpsg_Multirechnung_url" value="1" id="invoice_url" />
- <label for="invoice_url"><?php echo __('URL Benachrichtigung', 'wpsg'); ?></label>
- <span></span>
-
- <span></span>
- <label for="invoice_date"><?php echo __('Rechnungsdatum', 'wpsg') ;?></label>
- <input type="date" value="<?php echo date('Y-m-d'); ?>" name="wpsg_Multirechnung_datum" id="invoice_date" />
-
- <span style="display:flex; justify-content:flex-start; gap:0.5rem; grid-column:1/span 3;">
- <input type="hidden" name="preview" id="wpsg_mod_rechnungen_preview" />
- <input type="submit" name="wpsg_order_doaction" value="<?php echo _('Vorschau'); ?>" id="wpsg_mod_rechnungen_button_preview" />
- <input type="submit" name="wpsg_order_doaction" value="<?php echo _('Erstellen'); ?>" id="wpsg_mod_rechnungen_button_submit" />
- </span>
+
</div>
|
