Left to allocate is showing wrong. Fixed by @notrinos.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 12 Sep 2018 20:27:40 +0000 (22:27 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 12 Sep 2018 20:27:40 +0000 (22:27 +0200)
includes/ui/ui_view.inc

index 960afb0b4e052fe66e9766af99419565bf6a9538..3af7ed4a7ca8eb5583e39e8bae004b2fb04c3024 100644 (file)
@@ -560,8 +560,8 @@ function display_allocations($alloc_result, $total, $title, $show_summary=true)
        if ($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']);
        amount_cell($alloc_row['amt']);
+               amount_cell($alloc_row['Total'] - $alloc_row['amt']);
        end_row();
 
        $total_allocated += $alloc_row['amt'];