diff options
Diffstat (limited to 'views/order')
| -rw-r--r-- | views/order/view_general.phtml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/views/order/view_general.phtml b/views/order/view_general.phtml index 57fb353..69e06bf 100644 --- a/views/order/view_general.phtml +++ b/views/order/view_general.phtml @@ -34,6 +34,31 @@ <?php echo wpsg_drawForm_Select('status', __('Neuer Status', 'wpsg'), $this->arStatus, $this->view['data']['status']); ?>
<?php echo wpsg_drawForm_Checkbox('sendMail', __('Kunden informieren', 'wpsg'), 0); ?>
+ <?php if ($this->hasMod('wpsg_mod_rechnungen')) { $db_invoice = $this->callMod('wpsg_mod_rechnungen', 'getOrderInvoice', [$this->view['oOrder']->id]); ?>
+ <?php if (wpsg_isSizedInt($db_invoice['id'])) { ?>
+ <script>
+
+ jQuery('#sendMail').on('click', function() {
+
+ if (jQuery(this).prop('checked')) {
+
+ jQuery('#layer_attachInvoice').show();
+
+ } else {
+
+ jQuery('#layer_attachInvoice').hide();
+
+ }
+
+ }).click();
+
+ </script>
+ <div id="layer_attachInvoice">
+ <?php echo wpsg_drawForm_Checkbox('attachInvoice', __('Rechnung anhängen', 'wpsg'), 0); ?>
+ </div>
+ <?php } ?>
+ <?php } ?>
+
<br />
<?php $this->callMods('order_view_switchStatus', array(&$this->view['data']['id'])); ?>
|
