From 9286415c613218a8b3dfccc16a1282b0c8574880 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 29 Apr 2011 13:25:40 +0200 Subject: [PATCH] Fixed amount display at bank deposit view. --- gl/view/gl_deposit_view.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gl/view/gl_deposit_view.php b/gl/view/gl_deposit_view.php index 949282b..42e1aa3 100644 --- a/gl/view/gl_deposit_view.php +++ b/gl/view/gl_deposit_view.php @@ -122,14 +122,14 @@ else label_cell(get_dimension_string($item['dimension_id'], true)); if ($dim > 1) label_cell(get_dimension_string($item['dimension2_id'], true)); - amount_cell($item["amount"]); + amount_cell(-$item["amount"]); label_cell($item["memo_"]); end_row(); $total_amount += $item["amount"]; } } - label_row(_("Total"), number_format2($total_amount, user_price_dec()),"colspan=".(2+$dim)." align=right", "align=right"); + label_row(_("Total"), number_format2(-$total_amount, user_price_dec()),"colspan=".(2+$dim)." align=right", "align=right"); end_table(1); -- 2.30.2