From: Joe Hunt Date: Thu, 3 May 2012 06:25:43 +0000 (+0200) Subject: Rerun of /includes/ui/ui_view.inc X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=08ec121cde89a5f96beca63001a043850ea711fd;p=textcart.git Rerun of /includes/ui/ui_view.inc --- diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc index 8ffad40..e8991c8 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']);