0004760: Rerun - new last_sales_order_detail function sql very slow. Optimized by...
[fa-stable.git] / includes / ui / ui_view.inc
index 960afb0b4e052fe66e9766af99419565bf6a9538..9030ca90c9db22d88a926c111347669bf70b33f0 100644 (file)
@@ -560,7 +560,7 @@ 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['Total'] - $alloc_row['alloc']);
        amount_cell($alloc_row['amt']);
        end_row();