05-Sep-2009 Joe Hunt
# Changed Class Type to Class Name in GL Account groups
$ /gl/manage/gl_account_types.php
+# Changed so total in bank payments/deposits shows correctly if negative amount are entered.
+$ /gl/includes/ui/gl_bank_ui.inc
30-Aug-2009 Janusz Dobrowolski
# Fixed sql error during sales order line update with line cancelation.
gl_edit_item_controls($order, $dim);
if ($order->count_gl_items())
- label_row(_("Total"), number_format2(abs($order->gl_items_total()), user_price_dec()),"colspan=" . $colspan . " align=right", "align=right",3);
-
+ {
+ $total = $order->gl_items_total();
+ if ($order->trans_type == systypes::bank_deposit())
+ $total *= -1;
+ label_row(_("Total"), number_format2($total, user_price_dec()),"colspan=" . $colspan . " align=right", "align=right",3);
+ }
end_table();
div_end();
}