diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2023-01-30 06:06:46 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2023-01-30 06:06:46 +0000 |
| commit | 512c9c7dad71f3f36969ea13ef45b49106412c5b (patch) | |
| tree | 92c18d05cb55ab09f1c6590ee37a19ec9c975b95 /views/order/view_general.phtml | |
| parent | f962f206bfd5fce78003385b1917291acb1c8da3 (diff) | |
- Feature: Suche nach Rechnungen in Bestellverwaltung durch Datenbankänderung angepasst
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8214 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/order/view_general.phtml')
| -rw-r--r-- | views/order/view_general.phtml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/views/order/view_general.phtml b/views/order/view_general.phtml index 28d3018..c2a1bd7 100644 --- a/views/order/view_general.phtml +++ b/views/order/view_general.phtml @@ -34,8 +34,11 @@ <?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'])) { ?>
+ <?php if ($this->hasMod('wpsg_mod_rechnungen')) {
+
+ $arInvoice = \wpsg\wpsg_invoice::findByOrderId($this->view['oOrder']->id);
+
+ if (sizeof($arInvoice) > 0) { ?>
<script>
jQuery('#sendMail').on('click', function() {
|
