Revize cd149dd5
Přidáno uživatelem Ondřej Fibich před téměř 7 roky(ů)
application/views/members/show.php | ||
---|---|---|
</td>
|
||
</tr>
|
||
<?php if ($member->type != Member_Model::TYPE_APPLICANT) { ?>
|
||
<?php if (isset($expiration_date) && ($entrance_fee_paid == $member->entrance_fee)) { ?>
|
||
<?php if (isset($expiration_info) && ($entrance_fee_paid == $member->entrance_fee)) { ?>
|
||
<tr>
|
||
<th><?php echo __('Payed to').' '.help::hint('payed_to') ?></th>
|
||
<td><?php echo $expiration_date ?></td>
|
||
<td><span style="color: <?php echo ($account->balance < 0) ? 'red' : 'green' ?>"><?php if ($expiration_info->shortened): ?>> <?php endif; ?><?php echo $expiration_info->expiration_date ?></span></td>
|
||
</tr>
|
||
<?php } ?>
|
||
<?php if (isset($fee)) { ?>
|
Také k dispozici: Unified diff
Refs #1076: member expiration date calculation fix. The calc functionality was separate from Members controller to a new Expiration calc service. The new service comes with unit tests which tests the #1076. Additionally this patch comes with some fixes and improvements in already existing unit and integration tests.