summaryrefslogtreecommitdiff
path: root/views/mods/mod_gutschein/index.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2019-07-31 18:54:21 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2019-07-31 18:54:21 +0000
commite96b183e33afb4038b2e39868f32ebf94a59ba83 (patch)
tree92e15cdbff9e5929b98c4efce24a041b6cd253c8 /views/mods/mod_gutschein/index.phtml
parent1a8f06b6cf1bfd781c236f44d42a13166fbeac36 (diff)
- Gutschein/Coupon
- Task #681 git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7490 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_gutschein/index.phtml')
-rw-r--r--views/mods/mod_gutschein/index.phtml7
1 files changed, 5 insertions, 2 deletions
diff --git a/views/mods/mod_gutschein/index.phtml b/views/mods/mod_gutschein/index.phtml
index 4582533..fd47af7 100644
--- a/views/mods/mod_gutschein/index.phtml
+++ b/views/mods/mod_gutschein/index.phtml
@@ -80,7 +80,8 @@
</tr>
</thead>
<tbody>
- <?php foreach ($this->view['arData'] as $oVoucher) { ?>
+ <?php /** @var wpsg_voucher $oVoucher */
+ foreach ($this->view['arData'] as $oVoucher) { ?>
<tr>
<td class="col_checkbox">
@@ -107,8 +108,10 @@
<td class="col_end"><?php echo wpsg_formatTimestamp($oVoucher->end_date, true); ?></td>
<td class="col_value"><span><?php
- if ($oVoucher->calc_typ == 'w') echo wpsg_ff($oVoucher->value, $this->get_option('wpsg_currency'));
+ 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>';
?></span><?php