Rerun of /includes/ui/ui_view.inc
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 3 May 2012 06:25:43 +0000 (08:25 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 3 May 2012 06:25:43 +0000 (08:25 +0200)
includes/ui/ui_view.inc

index 8ffad405f1e1a045bc7e799e4bf7310ff9716129..e8991c8fc3781d1e5a3a0c71fdc84bded1f82bac 100644 (file)
@@ -500,7 +500,7 @@ function display_allocations($alloc_result, $total, $payments=false)
        label_cell(sql2date($alloc_row['tran_date']));
        $alloc_row['Total'] = round2($alloc_row['Total'], user_price_dec());
        $alloc_row['amt'] = round2($alloc_row['amt'], user_price_dec());
-       if ($payments && ($alloc_row['type'] == ST_SUPPAYMENT || $alloc_row['type'] == ST_BANKPAYMENT))
+       if ($payments && ($alloc_row['type'] == ST_SUPPAYMENT || $alloc_row['type'] == ST_BANKPAYMENT || $alloc_row['type'] == ST_SUPPCREDIT))
                $alloc_row['Total'] = -$alloc_row['Total'];
        amount_cell($alloc_row['Total']);
                amount_cell($alloc_row['Total'] - $alloc_row['amt']);