summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2019-08-23 12:16:23 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2019-08-23 12:16:23 +0000
commit404f054e8eebdfdb07d9007587bead4c91ab36e2 (patch)
treef83c2332c575c9301d1cdb0c4f60c44a1a40f049
parent78324e248719cf4f63e8e6b4f47aa4e1c7b39569 (diff)
- Mehrfachanwendbare Gutscheine gehen wieder
- Betrag Overview nicht doppelt negativ - git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7511 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/mods/mod_gutschein/index.phtml2
-rw-r--r--views/mods/mod_gutschein/overview_row_end_coupon.phtml2
2 files changed, 2 insertions, 2 deletions
diff --git a/views/mods/mod_gutschein/index.phtml b/views/mods/mod_gutschein/index.phtml
index fd47af7..e484d14 100644
--- a/views/mods/mod_gutschein/index.phtml
+++ b/views/mods/mod_gutschein/index.phtml
@@ -111,7 +111,7 @@
if ($oVoucher->calc_typ == 'w') echo wpsg_ff($oVoucher->getFreeAmount(), $this->get_option('wpsg_currency'));
else if ($oVoucher->calc_typ == 'p') echo wpsg_ff($oVoucher->value, '%');
- if ($oVoucher->calc_typ == 'w' && $oVoucher->getUsedAmount() > 0) echo ' <span title="'.__('Original Betrag', 'wpsg').'">('.wpsg_ff($oVoucher->value, $this->get_option('wpsg_currency')).')</span>';
+ if ($oVoucher->calc_typ == 'w' && $oVoucher->getUsedAmount() > 0 && !$oVoucher->isMultiUsable()) echo ' <span title="'.__('Original Betrag', 'wpsg').'">('.wpsg_ff($oVoucher->value, $this->get_option('wpsg_currency')).')</span>';
?></span><?php
diff --git a/views/mods/mod_gutschein/overview_row_end_coupon.phtml b/views/mods/mod_gutschein/overview_row_end_coupon.phtml
index 78e4bda..f1ec4c4 100644
--- a/views/mods/mod_gutschein/overview_row_end_coupon.phtml
+++ b/views/mods/mod_gutschein/overview_row_end_coupon.phtml
@@ -25,7 +25,7 @@
</div>
<div class="value"><?php
- echo '-'.wpsg_ff($gs[$display_brutto_netto], $this->get_option('wpsg_currency'));
+ echo wpsg_ff($gs[$display_brutto_netto], $this->get_option('wpsg_currency'));
if (strpos($gs['set'], '%') !== false) {