From: Joe Hunt Date: Sun, 13 Mar 2011 08:16:27 +0000 (+0100) Subject: Voided gl_trans_view doesn't display properly X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=20d61f658e58584338364ce8ea86cc66d0dba8fd;p=fa-stable.git Voided gl_trans_view doesn't display properly --- diff --git a/gl/view/gl_trans_view.php b/gl/view/gl_trans_view.php index 70103026..4e61fef9 100644 --- a/gl/view/gl_trans_view.php +++ b/gl/view/gl_trans_view.php @@ -100,20 +100,22 @@ while ($myrow = db_fetch($result)) else $credit += $myrow['amount']; } -start_row("class='inquirybg' style='font-weight:bold'"); -label_cell(_("Total"), "colspan=2"); -if ($dim >= 1) - label_cell(''); -if ($dim > 1) +if ($heading_shown) +{ + start_row("class='inquirybg' style='font-weight:bold'"); + label_cell(_("Total"), "colspan=2"); + if ($dim >= 1) + label_cell(''); + if ($dim > 1) + label_cell(''); + amount_cell($debit); + amount_cell(-$credit); label_cell(''); -amount_cell($debit); -amount_cell(-$credit); -label_cell(''); -end_row(); + end_row(); + end_table(1); +} //end of while loop -if ($heading_shown) - end_table(1); is_voided_display($_GET['type_id'], $_GET['trans_no'], _("This transaction has been voided."));