From 632e18e5cbef0c8cfeeb28dd19910a71efb77421 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 3 May 2012 08:25:43 +0200 Subject: [PATCH] Rerun of /includes/ui/ui_view.inc --- includes/ui/ui_view.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc index 8ffad405..e8991c8f 100644 --- a/includes/ui/ui_view.inc +++ b/includes/ui/ui_view.inc @@ -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']); -- 2.30.2