summaryrefslogtreecommitdiff
path: root/views/mods/mod_gutschein/index.phtml
diff options
context:
space:
mode:
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