summaryrefslogtreecommitdiff
path: root/views/order
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2020-05-12 11:41:52 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2020-05-12 11:41:52 +0000
commit6ccd624f4806b184481e7aaa7f1565c4ad251085 (patch)
tree9c5dc142928bba2f58da3f0bd0de3d32d3ce7b58 /views/order
parentf52d7f57ddb0cfd7f7f1f123f25859687d0376f0 (diff)
- Rechnugn an Status Mail anhängen (optional)4.2.3
- Brutto Preis bei Zahlungseingang vergleichen git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7719 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/order')
-rw-r--r--views/order/view_general.phtml25
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'])); ?>