Betroffene Quelle/Ziel hervorheben.
authorPascal Hofmann <mail@pascalhofmann.de>
Mon, 22 Nov 2010 22:51:15 +0000 (23:51 +0100)
committerPascal Hofmann <mail@pascalhofmann.de>
Mon, 22 Nov 2010 22:51:15 +0000 (23:51 +0100)
include/payments.php

index 37e2f0e..0076e47 100644 (file)
@@ -96,8 +96,8 @@ function render_finished_payments($count = 25) {/*{{{*/
                 <td><?php if ($payment['member_id'] != 0) : ?><a href="<?=html_escape(link_to('view_member', array('id'=> $payment['member_id'])))?>"><?=html_escape($payment['nickname'])?><?php endif ?></a></td>
                 <td style="text-align: right;"><?=html_escape(format_money(($payment['ptype'] == 'earning' ? 1 : -1)  * $payment['value']))?></td>
                 <td><?=html_escape($payment['description'])?></td>
-                <td style="text-align: right;"><?=html_escape(format_money($payment['bank']))?></td>
-                <td style="text-align: right;"><?=html_escape(format_money($payment['cash']))?></td>
+                <td style="text-align: right;<?php if ($payment['account'] == 'bank') : ?> font-style: italic;<?php endif ?>"><?=html_escape(format_money($payment['bank']))?></td>
+                <td style="text-align: right;<?php if ($payment['account'] == 'cash') : ?> font-style: italic;<?php endif ?>"><?=html_escape(format_money($payment['cash']))?></td>
                 <td style="text-align: right;"><?=html_escape(format_money($payment['total']))?></td>
             </tr>
         <?php endforeach ?>